File: rules

package info (click to toggle)
astrometry.net 0.76%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,120 kB
  • sloc: ansic: 161,636; python: 19,915; makefile: 1,439; awk: 159; cpp: 78; pascal: 67; sh: 61; perl: 9
file content (33 lines) | stat: -rwxr-xr-x 681 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
#!/usr/bin/make -f

export PYTHON = python3

%:
	dh $@ --with python3

d:=$$(pwd)/debian/tmp

override_dh_python3:
	dh_python3
	dh_numpy3

override_dh_auto_build:
	ln -sf . astrometry
	$(MAKE)	SYSTEM_GSL=yes all py extra

override_dh_auto_install:
	$(MAKE) \
	    INSTALL_DIR=$(d)/usr \
	    DATA_INSTALL_DIR=$(d)/usr/share/astrometry \
	    LIB_INSTALL_DIR=$(d)/usr/lib/${DEB_HOST_MULTIARCH}/ \
	    ETC_INSTALL_DIR=$(d)/etc \
	    PY_BASE_INSTALL_DIR=$(d)/usr/lib/python3/dist-packages/astrometry \
	    FINAL_DIR=/usr \
	    DATA_FINAL_DIR=/usr/share/astrometry \
	    SYSTEM_GSL=yes \
	    install
	rm -f $(d)/usr/bin/*.py

override_dh_clean:
	dh_clean
	rm -f `cat .gitignore`