#!/usr/bin/make -f
# derived from sample debian/rules file for GNU hello by Ian Jackson.

# Set this to enable debugging
export DH_VERBOSE = 1

include /usr/share/cdbs/1/rules/debhelper.mk

build/doc-debian::
	cd doc && $(MAKE)

clean::
	cd doc && $(MAKE) clean

get-orig-source::
	cd doc && $(MAKE) update

#install::
# TODO - move the files 
#	cp $(docdir)/constitution.1.3.txt ../constitution.txt
#	cp $(docdir)/social-contract.txt ../social-contract.txt

binary-indep/doc-debian::
	dpkg-distaddfile constitution.txt byhand -
	dpkg-distaddfile social-contract.txt byhand -
# Code disabled: There already is a mechanism (which one?)
# synching files over to f.d.o/debian/doc although not exactly the
# same (it retains page footers, which this one doesn't)
#
#      cp $(docdir)/debian-manifesto ../
#      dpkg-distaddfile debian-manifesto byhand -
#      ( cd $(docdir) && ls *.txt) |  \
#          grep -v constitution | \
#          grep -v social-contract | \
#          while read txtfile; do \
#             cp $(docdir)/$$txtfile ../ ; \
#             dpkg-distaddfile $$txtfile byhand - ; \
#            done


