File: rules

package info (click to toggle)
dumpasn1 20191022-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 640 kB
  • sloc: ansic: 7,705; xml: 162; makefile: 20; sh: 16
file content (31 lines) | stat: -rwxr-xr-x 793 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

-include /usr/share/dpkg/buildtools.mk

%:
	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: debian/dumpasn1.1
	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)