File: rules

package info (click to toggle)
coils 2002-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 224 kB
  • sloc: ansic: 911; perl: 778; makefile: 21
file content (34 lines) | stat: -rwxr-xr-x 969 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
34
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

%.1 : %.pod 
	pod2man -c 'User Commands' -r "$(VERSION)" $< $@

override_dh_auto_build:
	$(CC) $(CFLAGS) -I. -o ncoils ncoils.c read_matrix.c -lm -D__PKGDATADIR__=\"/usr/share/ncoils\" $(LDFLAGS)

overrice_dh_clean:
	dh_clean ncoils ncoils.1 coils-wrap.1

override_dh_install:
	dh_install
	sed -e 's|__pkgdatadir__|/usr/share/ncoils|g' coils-wrap.pl > $(CURDIR)/debian/ncoils/usr/bin/coils-wrap

override_dh_installman: ncoils.1 coils-wrap.1
	dh_installman ncoils.1 coils-wrap.1

d="../coils.upstream.tar.gz" 
VERSION=2002

get-orig-source:
	echo "Downloading to $(d)." ; \
	wget -O "$(d)" http://www.russelllab.org/coils/coils.tar.gz ; \
	cd `dirname $(d)` ; tar --exclude ncoils-linux -xzf `basename $(d)`
	cd `dirname $(d)` ; mv coils coils-$(VERSION)
	cd `dirname $(d)` ; tar --exclude ncoils-linux -czvf coils_$(VERSION).orig.tar.gz coils-$(VERSION)