Simplified debian/rules file
IOhannes m zmölnig
12 years ago
| 2 | 2 | -include /usr/share/cdbs/1/rules/upstream-tarball.mk |
| 3 | 3 | include /usr/share/cdbs/1/rules/buildcore.mk |
| 4 | 4 | include /usr/share/cdbs/1/rules/debhelper.mk |
| 5 | # regenerate configure, so that patches to configure.ac take effect | |
| 6 | include /usr/share/cdbs/1/rules/autoreconf.mk | |
| 5 | 7 | include /usr/share/cdbs/1/class/autotools.mk |
| 6 | 8 | |
| 7 | 9 | pkg = $(DEB_SOURCE_PACKAGE) |
| 11 | 13 | #DEB_UPSTREAM_PACKAGE = frei0r-plugins |
| 12 | 14 | #DEB_UPSTREAM_TARBALL_MD5 = a2eb63feeeb0c5cf439ccca276cbf70c |
| 13 | 15 | |
| 14 | # TODO: have autotools build docs as part of main build, when doxygen is found | |
| 15 | DEB_BUILDDIR_$(pkgdoc) = doc | |
| 16 | build/$(pkgdoc):: | |
| 17 | $(DEB_MAKE_INVOKE) | |
| 18 | # TODO: have autotools support DESTDIR for doc install target | |
| 19 | #install/$(pkgdoc):: | |
| 20 | # $(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET) | |
| 21 | DEB_DH_INSTALL_ARGS_$(pkgdoc) = doc/html usr/share/$(pkg) | |
| 22 | # TODO: have autotools support DESTDIR for doc clean target | |
| 23 | #DEB_PHONY_RULES += doc-clean/$(pkgdoc) | |
| 24 | #doc-clean/$(pkgdoc): | |
| 25 | # $(DEB_MAKE_INVOKE) distclean | |
| 26 | #clean:: doc-clean/$(pkgdoc) | |
| 16 | ## # TODO: have autotools build docs as part of main build, when doxygen is found | |
| 17 | ## DEB_BUILDDIR_$(pkgdoc) = doc | |
| 18 | ## build/$(pkgdoc):: | |
| 19 | ## $(DEB_MAKE_INVOKE) | |
| 20 | ## # TODO: have autotools support DESTDIR for doc install target | |
| 21 | ## #install/$(pkgdoc):: | |
| 22 | ## # $(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET) | |
| 23 | ## DEB_DH_INSTALL_ARGS_$(pkgdoc) = doc/html usr/share/$(pkg) | |
| 24 | ## # TODO: have autotools support DESTDIR for doc clean target | |
| 25 | ## #DEB_PHONY_RULES += doc-clean/$(pkgdoc) | |
| 26 | ## #doc-clean/$(pkgdoc): | |
| 27 | ## # $(DEB_MAKE_INVOKE) distclean | |
| 28 | ## #clean:: doc-clean/$(pkgdoc) | |
| 29 | ||
| 27 | 30 | clean:: |
| 28 | 31 | rm -f $(patsubst %,doc/html/*.%,html js css png map md5) |
| 29 | 32 | rm -f doc/Makefile |
| 33 | # rm -f Makefile aclocal.m4 config.log config.status configure | |