]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - debian/rules
Switch debian build system to dh
[onak.git] / debian / rules
index a230cea3ea2bc2d5a2170d18461ba4e5b195ac94..acf47b1923dc5749b63ef8808da3ebb54cbf84df 100755 (executable)
@@ -1,11 +1,16 @@
 #!/usr/bin/make -f
 
 #!/usr/bin/make -f
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
+DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic
 
 
-DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=db4
+CFLAGS += -std=gnu99
 
 
-DEB_MAKE_INSTALL_TARGET :=
+%:
+       dh "$@"
 
 
-# Woody doesn't like this of course
-#CFLAGS += -std=gnu99
+override_dh_clean:
+       rm -f config.log configure config.h.in aclocal.m4
+       dh_clean
+
+override_dh_auto_configure:
+       autoreconf
+       dh_auto_configure -- ${DEB_CONFIGURE_EXTRA_FLAGS}