File: rules

package info (click to toggle)
p4vasp 0.3.30+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,504 kB
  • sloc: python: 37,179; cpp: 13,894; ansic: 2,076; makefile: 377; sql: 207; xml: 102; sh: 13
file content (35 lines) | stat: -rwxr-xr-x 909 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

DESTDIR = $(CURDIR)/debian/tmp
PYVERSION = $(shell pyversions -d)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with python2

override_dh_auto_build:
	make \
		P4VASP_HOME=/usr/share/p4vasp \
		PYTHON_HOME=/usr/lib/$(PYVERSION) \
		PYINCLUDE=/usr/include/$(PYVERSION)

override_dh_auto_install:
	make install \
		P4VASP_HOME=$(DESTDIR)/usr/share/p4vasp \
		PYTHON_HOME=/usr/lib/$(PYVERSION) \
		PYINCLUDE=/usr/include/$(PYVERSION) \
		SITE_PACKAGES=$(DESTDIR)/usr/lib/$(PYVERSION)/dist-packages \
		INCLUDEDIR=$(DESTDIR)/usr/include \
		LIBDIR=$(DESTDIR)/usr/lib \
		BINDIR=$(DESTDIR)/usr/bin
	# Permissions:
	find $(DESTDIR)/usr -type f -exec chmod 644 {} \;
	chmod 755 $(DESTDIR)/usr/share/p4vasp/data/database

override_dh_auto_clean:
	make cleanall
	rm -f src/cp4vasp.py
	rm -f src/cp4vasp_wrap.cpp
	rm -f uninstall.sh