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

Contents of /debconf-trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 246 - (hide annotations) (download)
Mon Nov 15 23:40:48 1999 UTC (13 years, 7 months ago) by joey
File size: 1617 byte(s)
   * Debconf scripts now automatically load their templates when they are
     invoked manually, if the .templates file is present in the same directory.
   * This makes debconf-loadtemplate basically obsolete, so I have removed it.
   * This means there is no need for a special test.pl in the source package.
   * And this also means it's now a lot easier to debug config scripts before
     putting them in a package. Documented this in the tutorial.
   * Feh, I have to keep the debconf-tiny changelog in sync with this one,
     or the package version isn't updated. Debhelper is too smart for its
     own good. Hacked around it. (If other people have this problem, I can
     add a flag to debhelper to handle this better..)
   * Documented everywhere that when reconfiguring debconf, --priority=medium
     is a good idea. Closes: #50225
1 joey 53 #!/usr/bin/make -f
2     # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3     # This version is for packages that are architecture independent.
4    
5     # Uncomment this to turn on verbose mode.
6     #export DH_VERBOSE=1
7    
8 joey 136 fixlinks:
9     cd Debian && ln -sf .. DebConf
10    
11 joey 53 build:
12 joey 182 $(MAKE)
13 joey 53 dh_testdir
14    
15     clean:
16     dh_testdir
17     dh_testroot
18 joey 139 $(MAKE) clean
19 joey 53 dh_clean
20    
21 joey 182 install: build
22 joey 53 dh_testdir
23     dh_testroot
24     dh_clean -k
25     dh_installdirs
26 joey 90 $(MAKE) prefix=debian/tmp install
27 joey 245 $(MAKE) prefix=debian/debconf-tiny tiny-install
28 joey 53
29     # Build architecture-independent files here.
30 joey 182 binary-indep: install
31 joey 138 # Make sure debhelper is going to install the config and templates.
32     dh_testversion 2.0.49
33 joey 53 dh_testdir
34     dh_testroot
35 joey 168 # Don't modify postrm, I purge differently than normal packages
36     # using me.
37     dh_installdebconf -n
38 joey 188 dh_installdocs doc/CREDITS doc/*.txt doc/*.html \
39 joey 231 doc/packages-that-prompt doc/spec/*.txt doc/spec/*.html \
40     README TODO
41 joey 246 dh_installexamples samples/*
42 joey 53 dh_installmenu
43     dh_installcron
44 joey 245 dh_installmanpages -p debconf dpkg-frontend.1
45 joey 53 dh_installchangelogs
46     dh_compress
47     dh_fixperms
48     dh_suidregister
49     dh_installdeb
50 joey 246 # Hack to make sure debconf-tiny has the same version.
51     mv debian/debconf-tiny.changelog debian/debconf-tiny.changelog.bak
52 joey 53 dh_gencontrol
53 joey 246 mv debian/debconf-tiny.changelog.bak debian/debconf-tiny.changelog
54 joey 245 dh_md5sums -p debconf
55 joey 53 dh_builddeb
56    
57     # Build architecture-dependent files here.
58     binary-arch: build install
59     # Nothing to do.
60    
61     source diff:
62     @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
63    
64     binary: binary-indep binary-arch
65     .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5