]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - debian/rules
Switch debian build system to dh
[onak.git] / debian / rules
index 0874ec68bc7eecc197d14dbb7ce5aee8c1447f20..acf47b1923dc5749b63ef8808da3ebb54cbf84df 100755 (executable)
@@ -1,9 +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=dynamic
 
-# Woody doesn't like this of course
-#CFLAGS += -std=gnu99
+CFLAGS += -std=gnu99
+
+%:
+       dh "$@"
+
+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}