File: rules

package info (click to toggle)
dumpasn1 20120521-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 544 kB
  • sloc: ansic: 6,586; xml: 162; makefile: 16; sh: 16
file content (26 lines) | stat: -rwxr-xr-x 517 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
#!/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

debian/dumpasn1.1: debian/dumpasn1.1.xml
	xmltoman $< > $@