Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 by Joey Hess.
4 #
5 # This version is for a hypothetical package that builds an
6 # architecture-dependant package, as well as an architecture-independent
7 # package.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 # This has to be exported to make some magic below work.
13 export DH_OPTIONS
14
15 export DEB_CFLAGS_MAINT_APPEND = -std=gnu17
16
17 configure: configure-stamp
18 configure-stamp:
19 dh_testdir
20 # Add here commands to configure the package.
21 dh_autoreconf
22 ln -vs /usr/share/gnulib/lib/getloadavg.c .
23 dh_auto_configure -- --disable-auth
24 touch configure-stamp
25
26 build: build-arch build-indep
27
28 build-arch: build-stamp
29
30 build-indep: build-stamp
31
32 build-stamp: configure-stamp
33 dh_testdir
34
35 # Add here commands to compile the package.
36 $(MAKE)
37
38 touch build-stamp
39
40 clean:
41 dh_testdir
42 dh_testroot
43 rm -f build-stamp configure-stamp
44
45 # Add here commands to clean up after the build process.
46 -$(MAKE) distclean
47 -$(MAKE) clean
48 -rm -f `find . -name "config.cache"`
49 -rm -f config.status
50 -rm -f `find . -name "config.log"`
51 -rm -f Makefile.config gopher/Makefile gopher/locales/Makefile \
52 Makefile config.h doc/Makefile \
53 gophfilt/Makefile object/Makefile getloadavg.c
54
55 dh_clean
56
57 install: DH_OPTIONS=
58 install: build
59 dh_testdir
60 dh_testroot
61 dh_prep
62 dh_installdirs
63
64 # Add here commands to install the package into debian/gopher.
65 $(MAKE) install prefix=`pwd`/debian/gopher/usr \
66 PREFIX=`pwd`/debian/gopher/usr \
67 DESTDIR=`pwd`/debian/gopher
68
69 #chmod -R a-x debian/gopher/etc
70
71 #dh_movefiles
72 #chmod u+x debian/gopher/etc/gopher debian/gopher/etc
73
74 # Build architecture-independent files here.
75 # Pass -i to all debhelper commands in this target to reduce clutter.
76 binary-indep: DH_OPTIONS=-i
77 binary-indep: build install
78 # Need this version of debhelper for DH_OPTIONS to work.
79 dh_testdir
80 dh_testroot
81 # dh_installdebconf
82 dh_installdocs
83 dh_installexamples
84 dh_installmenu
85 # dh_installemacsen
86 # dh_installpam
87 dh_installinit
88 dh_installcron
89 dh_installlogrotate
90 # dh_installmanpages
91 dh_installinfo
92 # dh_undocumented
93 dh_installchangelogs
94 dh_link
95 dh_compress
96 dh_fixperms
97 # You may want to make some executables suid here.
98 dh_installdeb
99 # dh_perl
100 dh_gencontrol
101 dh_md5sums
102 dh_builddeb
103
104 # Build architecture-dependent files here.
105 # Pass -a to all debhelper commands in this target to reduce clutter.
106 binary-arch: DH_OPTIONS=-a
107 binary-arch: build install
108 # Need this version of debhelper for DH_OPTIONS to work.
109 dh_testdir
110 dh_testroot
111 # dh_installdebconf
112 dh_installdocs
113 dh_installexamples
114 dh_installmenu
115 # dh_installemacsen
116 # dh_installpam
117 dh_installinit
118 dh_installlogrotate
119 dh_installcron
120 # dh_installmanpages
121 dh_installinfo
122 # dh_undocumented
123 dh_installchangelogs
124 dh_strip
125 dh_link
126 dh_compress
127 dh_fixperms
128 # You may want to make some executables suid here.
129 dh_installdeb
130 # dh_makeshlibs
131 # dh_perl
132 dh_shlibdeps
133 dh_gencontrol
134 dh_md5sums
135 dh_builddeb
136
137 binary: binary-arch
138 .PHONY: build clean binary-arch binary install build-arch build-indep