#!/usr/bin/make -f # Makefile for formating the Debian-Lex FAQ ### HELP: I used a really dirty trick to get a real '&' into an url. ### See below for the line ### sed "s/\(?keywords=lex-\)&\(subword=1\)/\1\&\2/" ### Anybody knows how to do this right in SGML?? faq=debian-lex-faq all: html html: $(faq).sgml linuxdoc --backend=html $(faq).sgml ## I like output with the same timestamp as the source for html in `ls d*.html` ; do \ tmp=$${html}.$$ ; \ mv $${html} $${tmp} ; \ cat $${tmp} | \ sed "s/\(?keywords=lex-\)&\(subword=1\)/\1\&\2/" | \ cat > $${html} ; \ rm -f $${tmp} ; \ touch -r $(faq).sgml $${html} ; \ done clean: rm -f $(faq)*.html