File: rules

package info (click to toggle)
dumpasn1 20150808-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 604 kB
  • ctags: 527
  • sloc: ansic: 7,387; xml: 162; makefile: 19; sh: 16
file content (29 lines) | stat: -rwxr-xr-x 733 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@ --parallel

dumpasn1: dumpasn1.o
	$(CC) -o dumpasn1 dumpasn1.o $(CFLAGS) $(LDFLAGS)

dumpasn1.o: dumpasn1.c
	$(CC) -o dumpasn1.o -DDEBIAN $(CPPFLAGS) $(CFLAGS) -c dumpasn1.c

override_dh_auto_build: dumpasn1

override_dh_clean:
	dh_clean dumpasn1.o

override_dh_install:
	dh_install dumpasn1 $(DESTDIR)/usr/bin/
	dh_install dumpasn1.cfg $(DESTDIR)/etc/dumpasn1/

get-orig-source:
	./debian/get-orig-source

VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)
debian/dumpasn1.1: debian/dumpasn1.1.in
	help2man --include=$< --output=$@ \
		--name="ASN.1 object dump/syntax check program" \
		--no-info `basename $@ .1` --version-string=$(VER_FULL)