Fix fully preserve pristine source and restore in clean rule.
Jonas Smedegaard
12 years ago
31 | 31 | |
32 | 32 | DEB_INSTALL_DOCS_libijs-dev += ijs_spec.pdf |
33 | 33 | |
34 | # put aside upstream-shipped temp files during build but after copyright-check | |
35 | upstreamtmpfiles = configure ijs_spec.pdf | |
36 | pre-build:: debian/stamp-upstreamtmpstuff | |
37 | debian/stamp-upstreamtmpstuff: debian/stamp-copyright-check | |
38 | for file in $(upstreamtmpfiles); do \ | |
39 | [ ! -e $$file ] || [ -e $$file.upstream ] || cp -a $$file $$file.upstream; \ | |
40 | done | |
41 | touch $@ | |
42 | clean:: | |
43 | for file in $(upstreamtmpfiles); do \ | |
44 | [ ! -e $$file.upstream ] || mv -f $$file.upstream $$file; \ | |
45 | done | |
46 | rm -f debian/stamp-upstreamtmpstuff | |
47 | ||
34 | 48 | # Make sure that all files installed is also packaged |
35 | 49 | # * ignore debhelper-installed files (we trust dh_install*) |
36 | 50 | # * ignore example binaries |
57 | 71 | echo "Individual binary packages may work, but whole package build failed!"; \ |
58 | 72 | exit 1; \ |
59 | 73 | fi |
74 | clean:: | |
75 | rm -f debian/cdbs-reduced-package-list debian/cdbs-reduced-install-list debian/cdbs-install-diff |