debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | PACKAGE = $(shell dh_listpackages) |
| 4 | TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 | |
| 6 | BUILDHOME = $(shell perl -MDebian::Debhelper::Dh_Lib -e 'Debian::Debhelper::Dh_Lib::setup_home_and_xdg_dirs; print $$ENV{"HOME"};') |
| 7 | |
| 8 | %: |
| 9 | dh $@ |
| 10 | |
| 11 | override_dh_auto_test: |
| 12 | HOME=$(BUILDHOME) dh_auto_test |
| 13 | |
| 14 | override_dh_installexamples: |
| 15 | dh_installexamples |
| 16 | find $(TMP)/usr/share/doc/$(PACKAGE)/examples/* -type f | xargs chmod -x |