File: rules

package info (click to toggle)
iraf-sptable 1.0~pre20180612-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,628 kB
  • sloc: ansic: 2,026; fortran: 813; lisp: 749; makefile: 27
file content (35 lines) | stat: -rwxr-xr-x 781 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
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

export iraf := /usr/lib/iraf/
export noao := /usr/lib/iraf/noao/
export sptable := $(CURDIR)/

export HSI_CF := $(CFLAGS) $(CPPFLAGS)
export HSI_LF := $(LDFLAGS)

override_dh_auto_configure:
	rm -rf bin
	mkdir bin

override_dh_auto_build:
	mkpkg -p sptable

override_dh_auto_install:
	for f in $(shell find . -name \*.hlp \
            -o -name \*.hd \
            -o -name \*.men \
            -o -name \*.cl \
            -o -name \*.par \
            -o -name \*.def \
            -o -name \*.dat \
            -o -name \*.mip \
            -o -name \*.msg \
            -o -name \*.fits | \
	    cut -c3- | \
	    grep -v ^.pc/ ) ; do \
	  install -p -D -m 644 $$f debian/iraf-sptable/usr/lib/iraf/extern/sptable/$$f ; \
	done