Code

collection4.postinst: Fixed syntax error.
[pkg-collection4.git] / debian / rules
index 17e9846b3b3388167d2aedce5e464c15c09a3946..c13a89f42984bdf21920de2a6294293232bb7379 100755 (executable)
@@ -13,7 +13,7 @@ include /usr/share/quilt/quilt.make
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -UCONFIGFILE -DCONFIGFILE='\"/etc/collection4/collection.conf\"'
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
@@ -30,7 +30,7 @@ config.status: configure
                        --prefix=/usr \
                        --sysconfdir=/etc \
                        --mandir=\$${prefix}/share/man \
-                       CFLAGS="$(CFLAGS)"
+                       CFLAGS="$(CFLAGS)" LDFLAGS="-lm"
 
 build: build-stamp
 
@@ -49,6 +49,7 @@ clean: unpatch
        [ ! -f Makefile ] || $(MAKE) distclean
        
        dh_clean
+       debconf-updatepo
 
 install: build
        dh_testdir
@@ -68,6 +69,7 @@ binary-arch: build install
        dh_testroot
        dh_installchangelogs
        dh_installdocs -a -A AUTHORS README
+       dh_installdebconf -a
        dh_link -a
        dh_strip -a
        dh_compress -a