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