Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Comment out this line for debugging
4 export DH_VERBOSE:=1
5
6 -include /usr/share/dpkg/buildtools.mk
7
8 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
9 LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
10 INSTDIR:=debian/tmp/$(LIBDIR)
11 VERSION:=2.0.0
12
13 # To enable all, uncomment following line
14 DEB_BUILD_MAINT_OPTIONS:= hardening=+all
15 DEB_CFLAGS_MAINT_APPEND:= -Wall -pedantic -fPIC
16 export DEB_BUILD_MAINT_OPTIONS
17 export DEB_CFLAGS_MAINT_APPEND
18
19 # The magic rule for debhelper
20 %:
21 dh $@
22
23
24
25 override_dh_auto_clean:
26 dh_auto_clean
27 rm -f gctp.pc
28
29 override_dh_auto_install:
30 sed -e 's%@LIBDIR@%$(LIBDIR)%' < gctp.pc.in | \
31 sed -e 's/@VERSION@/$(VERSION)/' > gctp.pc
32 dh_auto_install -- 'CC=$(CC)'
33 rm $(INSTDIR)/libgctp.la $(INSTDIR)/libgctp.so
34 mv $(INSTDIR)/libgctp.a $(INSTDIR)/libgctp2.a
35