2 # Uncomment this to turn on verbose mode.
5 # This is the debhelper compatibility version to use.
8 # These are used for cross-compiling and for saving the configure script
9 # from having to guess our platform (since we know it already)
10 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
17 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
21 config.status: configure
23 # Add here commands to configure the package.
24 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
29 build-stamp: config.status
32 # Add here commands to compile the package.
34 #/usr/bin/docbook-to-man debian/ledstats.sgml > ledstats.1
43 # Add here commands to clean up after the build process.
45 -test -r /usr/share/misc/config.sub && \
46 cp -f /usr/share/misc/config.sub config.sub
47 -test -r /usr/share/misc/config.guess && \
48 cp -f /usr/share/misc/config.guess config.guess
59 # Add here commands to install the package into debian/ledstats.
60 $(MAKE) install prefix=$(CURDIR)/debian/ledstats/usr
63 # Build architecture-independent files here.
64 binary-indep: build install
65 # We have nothing to do by default.
67 # Build architecture-dependent files here.
68 binary-arch: build install
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install