1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
#export DH_OPTIONS = -v
# PROVE_OPTIONS: Set testing suite options (i.e. verbose output)
#export PROVE_OPTIONS = -v
export PREFIX=/usr
export INSTALL_LIB=$(DESTDIR)/usr/share/git-subrepo
export INSTALL_EXT=$(INSTALL_LIB)
%:
dh $@ \
-Smakefile --with=bash-completion
override_dh_auto_clean:
@if [ ! -d "test/repo_orig" ]; then \
echo "MOVE ORIGINAL BIANRY REPOS"; \
mv test/repo test/repo_orig; \
else \
echo "ORIGINAL BINARY REPOS ALREADY MOVED"; \
fi
make clean
@if [ -d "test/repo_orig" ]; then \
echo "RESTORE ORIGINAL BINARY REPOS"; \
rm -rf test/repo; \
mv test/repo_orig test/repo; \
else \
echo "NOTHING TO RESTORE - ORIGINAL BINARY REPOS NOT MOVED"; \
fi
override_dh_auto_test:
@if [ ! -d "test/repo_orig" ]; then \
echo "MOVE ORIGINAL BIANRY REPOS"; \
mv test/repo test/repo_orig; \
else \
echo "ORIGINAL BINARY REPOS ALREADY MOVED"; \
fi
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
export prove=$(PROVE_OPTIONS); make test
endif
override_dh_installchangelogs:
dh_installchangelogs Changes
|