r9391 - /packages/trunk/doc-debian/debian/rules
Author: jfs
Date: Wed Oct 17 21:24:54 2012
New Revision: 9391
URL: http://svn.debian.org/wsvn/?sc=1&rev=9391
Log:
Remake the debian/rules using CDBS
Modified:
packages/trunk/doc-debian/debian/rules
Modified: packages/trunk/doc-debian/debian/rules
URL: http://svn.debian.org/wsvn/packages/trunk/doc-debian/debian/rules?rev=9391&op=diff
==============================================================================
--- packages/trunk/doc-debian/debian/rules (original)
+++ packages/trunk/doc-debian/debian/rules Wed Oct 17 21:24:54 2012
@@ -1,53 +1,23 @@
#!/usr/bin/make -f
# derived from sample debian/rules file for GNU hello by Ian Jackson.
-tmp = $(CURDIR)/debian/tmp
-docdir = $(tmp)/usr/share/doc/debian
+# Set this to enable debugging
+export DH_VERBOSE = 1
-build: stamp-build
-stamp-build: refresh
- test -f debian/rules
- touch $@
+include /usr/share/cdbs/1/rules/debhelper.mk
-clean:
- test -f debian/rules
- test "`id -u`" -eq 0
- cd doc && $(MAKE) realclean
- rm -rf $(tmp)
- rm -f stamp-build debian/files `find . -name "*~"`
+clean::
+ cd doc && $(MAKE) clean
-refresh:
- cd doc && $(MAKE)
+get-orig-source::
+ cd doc && $(MAKE) update
-binary: binary-indep binary-arch
+#install::
+# TODO - move the files
+# cp $(docdir)/constitution.1.3.txt ../constitution.txt
+# cp $(docdir)/social-contract.txt ../social-contract.txt
-binary-arch:
-
-binary-indep: build
- test -f debian/rules
- test "`id -u`" -eq 0
- rm -rf $(tmp)
-
- install -m 755 -d $(tmp)/DEBIAN \
- $(tmp)/usr/share/doc-base $(tmp)/usr/share/doc/doc-debian $(docdir)
-# Copy all the contents of doc/
- cp -p doc/* $(docdir)
-# Save for the files that are used to auto-generate them
- rm -f $(docdir)/*wml
- rm -f $(docdir)/Makefile
-
- install -m 755 debian/prerm debian/postinst $(tmp)/DEBIAN
- install -m 644 doc-base/* $(tmp)/usr/share/doc-base
- install -m 644 debian/copyright $(tmp)/usr/share/doc/doc-debian
- gzip -c9 debian/changelog > $(tmp)/usr/share/doc/doc-debian/changelog.gz
- chown -R root.root $(tmp) && chmod -R go=rX $(tmp)
- dpkg-gencontrol -isp
- dpkg --build $(tmp) ..
-
-# The extra-package files:
- cp $(docdir)/constitution.1.3.txt ../constitution.txt
- cp $(docdir)/social-contract.txt ../social-contract.txt
-
+binary-indep::
dpkg-distaddfile constitution.txt byhand -
dpkg-distaddfile social-contract.txt byhand -
# Code disabled: There already is a mechanism (which one?)
@@ -65,4 +35,3 @@
# done
-.PHONY: build clean binary binary-arch binary-indep
Reply to: