File: rules

package info (click to toggle)
cfitsio 4.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,596 kB
  • sloc: ansic: 107,602; yacc: 5,410; sh: 4,513; fortran: 2,613; lex: 553; makefile: 180
file content (48 lines) | stat: -rwxr-xr-x 1,111 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f fitscopy imcopy
	rm -f testprog.fit
	rm -rf docs/cfitsio docs/fitsio docs/quick

override_dh_auto_configure-arch:
	dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --enable-reentrant --with-bzip2

override_dh_auto_configure-indep:
	# Nothing to do

override_dh_auto_build-indep:
	for i in cfitsio fitsio quick ; do \
		cd $(CURDIR) ; \
		mkdir -p $(CURDIR)/docs/$$i ; \
		hevea -fix -o docs/$$i/$$i docs/$$i.tex ; \
		cd $(CURDIR)/docs/$$i ; \
		hacha $$i ; \
		rm -f $$i *.haux *.htoc *.hind ; \
		cd $(CURDIR)/docs ; \
		latex $$i.tex ; \
		latex $$i.tex ; \
		latex $$i.tex ; \
		dvipdf $$i.dvi ; \
	done

override_dh_auto_test-arch:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	LD_LIBRARY_PATH=$(CURDIR) $(CURDIR)/testprog
endif

override_dh_auto_install-indep:
	# Nothing to do

override_dh_gencontrol-indep:
	dh_gencontrol -pfitsverify -- -v4.22+cfitsio$(DEB_VERSION)
	dh_gencontrol -Nfitsverify