ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/debian/rules
Revision: 1.2
Committed: Mon Mar 10 13:44:45 2003 UTC (21 years, 7 months ago) by Arvoreen
Branch: MAIN
CVS Tags: rel-1_9, rel-1_8, rel-2_01, poll-based-iom, rel-3_0, VPE_0_9, VPE_1_2, rel-2_2, rel-2_0, VPE_1_4, VPE_1_6, rel-1_7, VPE-1_6_1, rel-2_21, rel-2_22, rel-2_25, VPE_1_0, HEAD
Changes since 1.1: +1 -2 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatability version to use.
9 export DH_COMPAT=3
10
11 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12 CFLAGS += -g3 -O0 -fno-inline
13 LDFLAGS += -g3
14 else
15 CFLAGS += -g -O2
16 LDFLAGS += -g
17 endif
18
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20 STRIP = yes
21 endif
22
23
24 build: build-stamp
25 build-stamp:
26 dh_testdir
27
28 # # If the Makefile.in.in file in po/ already contains DESTDIR support, skip the patching.
29 cd `pwd`/po ; ( \
30 if ! grep DESTDIR Makefile.in.in > /dev/null ; then \
31 patch -Ns -p0 < `pwd`/../debian/po-Makefile.in.in.diff || true ;\
32 fi ;\
33 )
34 CC=gcc-2.95 CPP=cpp-2.95 ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
35 --infodir=\$${prefix}/share/info --sysconfdir=/etc \
36 --localstatedir=/var --enable-hmac-length=4 --enable-trust \
37 --enable-rand-length=0 --enable-cipher=bf --enable-digest=md4
38 $(MAKE)
39
40 touch build-stamp
41
42 clean:
43 dh_testdir
44 dh_testroot
45 rm -f build-stamp
46
47 -$(MAKE) distclean
48
49 dh_clean
50
51 install: build
52 dh_testdir
53 dh_testroot
54 dh_clean -k
55 dh_installdirs
56
57 $(MAKE) install DESTDIR=`pwd`/debian/tmp
58
59 # Build architecture-independent files here.
60 binary-indep: build install
61 # We have nothing to do by default.
62
63 # Build architecture-dependent files here.
64 binary-arch: build install
65 dh_testdir
66 dh_testroot
67 #dh_movefiles
68 #install -o root -g root -m 755 debian/init.d debian/vpe/etc/init.d/vpe
69 dh_installmanpages
70 dh_installinfo
71 dh_installchangelogs ChangeLog
72 dh_link
73 @ if [ "$(STRIP)" = "yes" ] ; then \
74 dh_strip ;\
75 fi
76 dh_compress
77 dh_fixperms
78 dh_installdeb
79 dh_shlibdeps
80 dh_gencontrol
81 dh_md5sums
82 dh_builddeb
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install