File: rules

package info (click to toggle)
cfitsio 3.470-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 14,484 kB
  • sloc: ansic: 106,145; yacc: 4,883; sh: 3,259; fortran: 2,613; lex: 504; makefile: 162
file content (50 lines) | stat: -rwxr-xr-x 1,163 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
49
50
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND = -Wall

%:
	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 -- --enable-reentrant --with-bzip2

override_dh_auto_configure-indep:
	# Nothing to do

override_dh_auto_build-arch:
	dh_auto_build -- shared
	dh_auto_build -- fitscopy fpack funpack imcopy testprog

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-arch:
	dh_auto_install
	install -d -m 755 $(CURDIR)/debian/tmp/usr/bin
	install -m 755 fitscopy fpack funpack imcopy $(CURDIR)/debian/tmp/usr/bin

override_dh_auto_install-indep:
	# Nothing to do