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
|
#!/usr/bin/make -f
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
include /usr/share/dpkg/default.mk
%:
dh $@ --sourcedirectory=src
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd src && python3 run_tests.py
endif
override_dh_auto_install:
mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
dh_auto_install -- prefix=$(CURDIR)/debian/$(DEB_SOURCE)/usr
#echo "#!/usr/bin/python3" > $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/Phyx_Gui
#cat src/Phyx_Gui.py >> $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/Phyx_Gui
override_dh_compress:
dh_compress --exclude=.pdf
override_dh_auto_clean:
rm -rf src/phyx.logfile
if [ -r src/Makefile ]; then \
$(MAKE) -C src distclean; \
fi
|