File: rules

package info (click to toggle)
phyx 1.3.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,992 kB
  • sloc: cpp: 25,469; fortran: 7,932; sh: 3,318; python: 780; makefile: 509
file content (35 lines) | stat: -rwxr-xr-x 897 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
30
31
32
33
34
35
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Avoid section conflict on parisc, see #1044139.
ifneq (,$(filter $(DEB_HOST_ARCH),hppa))
export DEB_CXXFLAGS_MAINT_APPEND += -ffunction-sections
endif

%:
	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