chiark / gitweb /
build and clean stuff with the top-level makefile, not debian/rules;
[developers-reference.git] / debian / rules
index dd2c897..7a8d97e 100755 (executable)
@@ -24,27 +24,20 @@ DEB_VERSION := $(shell LC_ALL=C dpkg-parsechangelog | grep '^Version: ' | sed 's
 # pretty-print the date
 DATE           := $(shell LC_ALL=C date --date="`dpkg-parsechangelog | grep '^Date: ' | sed 's/^Date: *//'`" '+%d %B, %Y')
 
-build: developers-reference.sgml
-       $(checkdir)
-       rm -f version.ent
+version.ent:
+       :> version.ent
        echo "<!entity version \"$(DEB_VERSION)\">" >> version.ent
        echo "<!entity date    \"$(DATE)\">"        >> version.ent
-       nsgmls -wall -s -E20 $^         # check SGML syntax
-       debiandoc2html $^
-       debiandoc2text $^
-       debiandoc2latexpdf -p letter $^
+
+build:
+       $(checkdir)
+       $(MAKE)
        touch build
 
 clean:
        $(checkdir)
+       $(MAKE) clean
        rm -f build
-       rm -rf developers-reference.html
-       rm -f developers-reference.txt* developers-reference.ps \
-         developers-reference.pdf developers-reference.lout* lout.li   \
-         developers-reference.sasp* developers-reference.tex           \
-         developers-reference.aux developers-reference.toc             \
-         developers-reference.idx version.ent
-       rm -f `find . -name "*~"`
        rm -rf $(prefix)
        rm -f debian/files* core debian/substvars