/[debconf]/trunk/src/debconf/debian/rules
ViewVC logotype

Contents of /trunk/src/debconf/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 722 - (show annotations) (download)
Sat Feb 24 01:07:07 2001 UTC (12 years, 2 months ago) by joey
Original Path: debconf-trunk/debian/rules
File size: 2851 byte(s)
builds debs now, I'm letting people test it
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 # This is the debhelper compatibility version to use.
7 export DH_COMPAT=3
8
9 # This has to be exported to make some magic below work.
10 export DH_OPTIONS
11
12 # Ensure that builds are self-hosting, which means I have to use the .pm
13 # files in this package, not any that may be on the system.
14 export PERL5LIB=.
15
16 # I've broken up building to make the build-dependancies more sane,
17 # since lots of stuff is needed for building arch dependant and independant
18 # packages.
19 build:
20 @echo "This package does not have a unified build target."
21 @echo "Use either build-arch or build-indep to build."
22
23 build-arch: build-arch-stamp
24 build-arch-stamp:
25 dh_testdir
26 $(MAKE) -C po
27 $(MAKE) -C apt
28 touch build-arch-stamp
29
30 build-indep: build-indep-stamp
31 build-indep-stamp:
32 dh_testdir
33 $(MAKE) -C doc
34
35 clean:
36 dh_testdir
37 dh_testroot
38 rm -f build-arch-stamp build-indep-stamp
39 $(MAKE) clean
40 dh_clean debian/debconf.changelog
41 # Just so non-debian folks will know where to find it.
42 ln -sf ../debian/copyright doc/COPYRIGHT
43
44 # Build architecture-independent files here.
45 # Pass -i to all debhelper commands in this target to reduce clutter.
46 binary-indep: DH_OPTIONS=-i
47 binary-indep: build-indep
48 dh_testdir
49 dh_testroot
50 dh_clean -k
51 dh_installdirs
52
53 $(MAKE) prefix=`pwd`/debian/debconf-doc install-man
54 $(MAKE) prefix=`pwd`/debian/debconf-utils install-utils
55
56 dh_installdocs doc/namespace.txt \
57 doc/*.txt doc/*.html doc/TODO doc/CREDITS \
58 doc/passthrough.txt doc/README
59 dh_installexamples samples/*
60 dh_installchangelogs
61 dh_link
62 dh_compress
63 dh_fixperms
64 dh_installdeb
65 dh_gencontrol
66 dh_md5sums
67 dh_builddeb
68
69 # Build architecture-dependent files here.
70 # Pass -a to all debhelper commands in this target to reduce clutter.
71 binary-arch: DH_OPTIONS=-a
72 binary-arch: build-arch
73 # Make sure debhelper is going to install the config and templates.
74 dh_testversion 2.0.98
75 dh_testdir
76 dh_testroot
77 dh_clean -k
78 dh_installdirs etc/apt/apt.conf.d
79
80 install -m 0644 debian/apt.conf \
81 debian/debconf/etc/apt/apt.conf.d/debconf
82
83 $(MAKE) prefix=`pwd`/debian/debconf install-rest
84
85 # Don't modify postrm, I purge differently than normal packages
86 # using me.
87 PATH=.:$(PATH) dh_installdebconf -n
88 dh_installdocs
89 # Changelog reduction hack for debconf. Only include top 5 entries.
90 perl -ne '$$c++ if /^debconf /; last if $$c > 5 ; print $$_' \
91 < debian/changelog > debian/debconf.changelog
92 echo "See /usr/share/doc/debconf-doc/changelog.gz for the" >> debian/debconf.changelog
93 echo "remainder of this changelog." >> debian/debconf.changelog
94 dh_installchangelogs
95 dh_strip
96 dh_link
97 dh_compress
98 dh_fixperms
99 dh_installdeb
100 dh_shlibdeps
101 dh_gencontrol
102 dh_md5sums
103 dh_builddeb
104
105 binary: binary-indep binary-arch
106 .PHONY: build clean build-indep binary-indep build-arch binary-arch binary

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5