| 1 |
#!/usr/bin/make -f
|
| 2 |
# debian/rules that uses debhelper. GNU copyright 1999 by Joey Hess.
|
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode.
|
| 5 |
#export DH_VERBOSE=1
|
| 6 |
|
| 7 |
fixlinks:
|
| 8 |
ln -sf templates debian/debconf-tiny.templates
|
| 9 |
ln -sf config debian/debconf-tiny.config
|
| 10 |
ln -sf postinst debian/debconf-tiny.postinst
|
| 11 |
ln -sf postrm debian/debconf-tiny.postrm
|
| 12 |
|
| 13 |
build: fixlinks
|
| 14 |
$(MAKE)
|
| 15 |
dh_testdir
|
| 16 |
|
| 17 |
clean:
|
| 18 |
dh_testdir
|
| 19 |
dh_testroot
|
| 20 |
$(MAKE) clean
|
| 21 |
dh_clean
|
| 22 |
|
| 23 |
install: build
|
| 24 |
dh_testdir
|
| 25 |
dh_testroot
|
| 26 |
dh_clean -k
|
| 27 |
dh_installdirs
|
| 28 |
$(MAKE) prefix=debian/tmp install
|
| 29 |
$(MAKE) prefix=debian/debconf-tiny tiny-install
|
| 30 |
|
| 31 |
# Build architecture-independent files here.
|
| 32 |
binary-indep: install
|
| 33 |
# Make sure debhelper is going to install the config and templates.
|
| 34 |
dh_testversion 2.0.49
|
| 35 |
dh_testdir
|
| 36 |
dh_testroot
|
| 37 |
# Don't modify postrm, I purge differently than normal packages
|
| 38 |
# using me.
|
| 39 |
dh_installdebconf -n
|
| 40 |
dh_installdocs doc/CREDITS doc/*.txt doc/*.html \
|
| 41 |
doc/spec/*.txt doc/spec/*.html \
|
| 42 |
README TODO debian/Debian.bugtemplate
|
| 43 |
dh_installexamples samples/*
|
| 44 |
dh_installmenu
|
| 45 |
dh_installcron
|
| 46 |
dh_installmanpages -p debconf
|
| 47 |
dh_installchangelogs
|
| 48 |
dh_compress
|
| 49 |
dh_fixperms
|
| 50 |
dh_suidregister
|
| 51 |
dh_installdeb
|
| 52 |
# Hack to make sure debconf-tiny has the same version.
|
| 53 |
mv debian/debconf-tiny.changelog debian/debconf-tiny.changelog.bak
|
| 54 |
dh_gencontrol
|
| 55 |
mv debian/debconf-tiny.changelog.bak debian/debconf-tiny.changelog
|
| 56 |
dh_md5sums -p debconf
|
| 57 |
dh_builddeb
|
| 58 |
|
| 59 |
# Build architecture-dependent files here.
|
| 60 |
binary-arch: build install
|
| 61 |
# Nothing to do.
|
| 62 |
|
| 63 |
source diff:
|
| 64 |
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
|
| 65 |
|
| 66 |
binary: binary-indep binary-arch
|
| 67 |
.PHONY: build clean binary-indep binary-arch binary install
|