all: \ debian.html \ debian.tgz \ kerberos.html \ kerberos.tgz \ ldap.html \ ldap.tgz \ afs.html \ afs.tgz \ dns.html \ dns.tgz %.html: %.xml xsltproc -o $@ \ -stringparam html.stylesheet DKLAR.css \ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl $< perl -pi -e 's/DONATE_LINK//g' $@ perl -pi -e 'BEGIN{ open IN, "< keywords/$@"; $$keywords=join("", ); chomp $$keywords} s/<\/title>/<\/title>/g' $@ debian.html: debian.sgml debian-*.sgml common.ent DKLAR.css sgmltools -b onehtml $< perl -pi -e'$$.==4 and $$_ = q{>}; $$.==5 and $$_ = q{Hands-on Guide to the Debian GNU Operating System}; $$.== 6 and $$_ = ")} s/DONATE_LINK/$$link/g' $@ perl -pi -e 's/DONATE_LINK//g' $@ perl -pi -e 'BEGIN{ open IN, "< keywords/$@"; $$keywords=join("", ); chomp $$keywords} s/<\/title>/<\/title>/g' $@ %.tgz: %.xml %.html DKLAR.css Makefile -rm -f $@ tar zcf $@ `basename $< .xml`.* DKLAR.css Makefile debian.tgz: debian.html DKLAR.css Makefile -rm -f $@ tar zcf $@ debian*sgml common.ent DKLAR.css Makefile clean: -rm -f *.tgz -rm -f *.html refresh: ssh -K mire.hcoop.net '~/bin/refresh-reps'