diff --git a/debian-devel/rules b/debian-devel/rules index dbfcdea9c..cab713c93 100755 --- a/debian-devel/rules +++ b/debian-devel/rules @@ -4,10 +4,8 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all BUILDDIR = builddir -$(BUILDDIR)/Makefile: - mkdir -p $(BUILDDIR) - cd $(BUILDDIR) && \ - cmake .. \ +override_dh_auto_configure: + dh_auto_configure --buildsystem=cmake -- \ -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \ -DLIBDIR=/usr/lib/${DEB_HOST_MULTIARCH} \ -DENABLE_DOC:BOOL=ON \ @@ -18,14 +16,8 @@ $(BUILDDIR)/Makefile: -DCMAKE_SKIP_RPATH:BOOL=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -override_dh_auto_configure: - echo - -override_dh_auto_build: $(BUILDDIR)/Makefile - dh_auto_build - override_dh_installchangelogs: dh_installchangelogs ChangeLog.adoc %: - dh $@ --builddirectory=$(BUILDDIR) --without autoreconf + dh $@ --builddirectory=$(BUILDDIR) diff --git a/debian-stable/rules b/debian-stable/rules index dbfcdea9c..cab713c93 100755 --- a/debian-stable/rules +++ b/debian-stable/rules @@ -4,10 +4,8 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all BUILDDIR = builddir -$(BUILDDIR)/Makefile: - mkdir -p $(BUILDDIR) - cd $(BUILDDIR) && \ - cmake .. \ +override_dh_auto_configure: + dh_auto_configure --buildsystem=cmake -- \ -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \ -DLIBDIR=/usr/lib/${DEB_HOST_MULTIARCH} \ -DENABLE_DOC:BOOL=ON \ @@ -18,14 +16,8 @@ $(BUILDDIR)/Makefile: -DCMAKE_SKIP_RPATH:BOOL=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -override_dh_auto_configure: - echo - -override_dh_auto_build: $(BUILDDIR)/Makefile - dh_auto_build - override_dh_installchangelogs: dh_installchangelogs ChangeLog.adoc %: - dh $@ --builddirectory=$(BUILDDIR) --without autoreconf + dh $@ --builddirectory=$(BUILDDIR)