VER=0.86 DESTDIR=/www/htdocs/linux/HP-Howto CIBLE=HP-HOWTO CIBLE1=$(CIBLE)-FR.sgml $(CIBLE1) : $(CIBLE).sgml /usr/local/bin/wml -o ENuUNDEF:$(CIBLE)-EN.sgml -o FRuUNDEF:$(CIBLE1) $(CIBLE).sgml all: all-fr all-en all-fr: $(CIBLE)-FR.ps $(CIBLE)-FR.pdf $(CIBLE)-FR.txt $(CIBLE)-FR.rtf $(CIBLE)-FR/index.html all-en: $(CIBLE)-EN.ps $(CIBLE)-EN.pdf $(CIBLE)-EN.txt $(CIBLE)-EN.rtf $(CIBLE)-EN/index.html $(CIBLE)-FR.ps: $(CIBLE1) $(CIBLE)-Print.dsl /usr/local/bin/sgmltools -b ps -v -s $(CIBLE)-Print.dsl $(CIBLE1) $(CIBLE)-FR/index.html: $(CIBLE1) rm -rf $(CIBLE)-FR /usr/local/bin/sgmltools -b html $(CIBLE1) $(CIBLE)-FR.rtf: $(CIBLE1) /usr/local/bin/sgmltools -b rtf $(CIBLE1) $(CIBLE)-FR.txt: $(CIBLE1) /usr/local/bin/sgmltools -b txt $(CIBLE1) $(CIBLE)-FR.pdf: $(CIBLE)-FR.ps ps2pdf $(CIBLE)-FR.ps $(CIBLE)-FR.pdf $(CIBLE)-EN/index.html: $(CIBLE1) rm -rf $(CIBLE)-EN /usr/local/bin/sgmltools -b html $(CIBLE)-EN.sgml $(CIBLE)-EN.psf: $(CIBLE1) /usr/local/bin/sgmltools -b ps $(CIBLE)-EN.sgml $(CIBLE)-EN.rtf: $(CIBLE1) /usr/local/bin/sgmltools -b rtf $(CIBLE)-EN.sgml $(CIBLE)-EN.txt: $(CIBLE1) /usr/local/bin/sgmltools -b txt $(CIBLE)-EN.sgml $(CIBLE)-EN.pdf: $(CIBLE)-EN.ps ps2pdf $(CIBLE)-EN.ps $(CIBLE)-EN.pdf install: all cp -a * ../mirror $(DESTDIR) find $(DESTDIR) -type f -exec chmod 644 {} \; find $(DESTDIR) -type d -exec chmod 755 {} \; livhp: install zip -v HP-HOWTO-$(VER).zip HP-HOWTO-FR.pdf HP-HOWTO-FR.rtf HP-HOWTO-FR.sgml cp -a HP-HOWTO-$(VER).zip ../mirror mutt marc_hia-balie@hp.com -c bruno -a HP-HOWTO-$(VER).zip -s "HP-HOWTO Version $(VER)" tarball: install tar cvfz HP-HOWTO-$(VER).tar.gz *.dsl HP-HOWTO.sgml Makefile checkFREN cp -a HP-HOWTO-$(VER).tar.gz ../mirror mutt bruno -c bc -a HP-HOWTO-$(VER).tar.gz -s "HP-HOWTO Version $(VER)" < /dev/null