File: rules

package info (click to toggle)
phyx 1.01%2Bds-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,220 kB
  • sloc: cpp: 21,719; fortran: 7,932; makefile: 412; python: 181; sh: 128
file content (29 lines) | stat: -rwxr-xr-x 695 bytes parent folder | download
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