File: rules

package info (click to toggle)
astrometry.net 0.70%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,544 kB
  • sloc: ansic: 161,390; python: 19,747; makefile: 1,412; awk: 159; cpp: 78; pascal: 67; sh: 61; perl: 9
file content (30 lines) | stat: -rwxr-xr-x 656 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
#!/usr/bin/make -f
%:
	dh $@ --with python2

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

override_dh_python2:
	dh_python2
	dh_numpy

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/python2.7/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`