[SCM] libopenmpt/master: Implement build targets manually in debian/rules
jcowgill at users.alioth.debian.org
jcowgill at users.alioth.debian.org
Wed Nov 8 23:58:15 UTC 2017
The following commit has been merged in the master branch:
commit 4c259f0d621aaa7a49622c5d5c74ff348f820853
Author: James Cowgill <jcowgill at debian.org>
Date: Wed Nov 8 21:48:53 2017 +0000
Implement build targets manually in debian/rules
dh doesn't play nicely with having a "build" directory in the upstream
source, so reimplement the 3 build targets in debain/rules manually.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..0230c71
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+debian/build-stamp
diff --git a/debian/rules b/debian/rules
index 9219976..d0edff2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,18 +6,22 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
-.PHONY: build
-build:
- dh $@
+# Unfortunately dh does not play well with having a directory named "build" in
+# the top level source directory. Trying to create a phony target named "build"
+# in this rules file confuses dh in certain situations. Workaround this by
+# reimplementing all the build targets manually.
+.PHONY: build build-arch build-indep
+build: debian/build-stamp
+build-arch: build
+build-indep: build
-override_dh_autoreconf:
+debian/build-stamp:
+ dh_testdir
dh_autoreconf --as-needed
-
-override_dh_auto_configure:
dh_auto_configure -- --disable-static --enable-libopenmpt_modplug
-
-override_dh_auto_build:
dh_auto_build -- all doxygen-doc
+ dh_auto_test
+ touch debian/build-stamp
override_dh_installchangelogs:
dh_installchangelogs libopenmpt/dox/changelog.md
--
libopenmpt packaging
More information about the pkg-multimedia-commits
mailing list