VER=0.87 DESTDIR=/www/htdocs/linux/HP-Howto BULLDIR=/home/httpd/html/linux/HP-Howto CIBLE=HP-HOWTO CIBLE-FR=$(CIBLE)-FR CIBLE-EN=$(CIBLE)-EN SRC=$(CIBLE-FR).sgml $(CIBLE-EN).sgml $(CIBLE).sgml $(CIBLE).dsl $(CIBLE).dtd Makefile RH=/usr/src/redhat SPECS=$(RH)/SPECS SOURCES=$(RH)/SOURCES $(CIBLE-FR).sgml : $(CIBLE).sgml /usr/local/lib/wml/exec/wml_p9_slice -o ENuUNDEF:$(CIBLE-EN).sgml -o FRuUNDEF:$(CIBLE-FR).sgml $(CIBLE).sgml # /etc/sgml/catalog contient # CATALOG "/bruno/HP-Howto/mirror/catalog" 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: $(SRC) sgmltools -b ps -v -s $(CIBLE).dsl'#print' $(CIBLE-FR).sgml $(CIBLE-FR)/index.html: $(SRC) rm -rf $(CIBLE-FR) sgmltools -b html -v -s $(CIBLE).dsl'#html' $(CIBLE-FR).sgml (cd $(CIBLE-FR) ; ln -sf ../../images images) $(CIBLE-FR).rtf: $(SRC) sgmltools -b rtf $(CIBLE-FR).sgml $(CIBLE-FR).txt: $(SRC) sgmltools -b txt $(CIBLE-FR).sgml $(CIBLE-FR).pdf: $(SRC) ps2pdf $(CIBLE-FR).ps $(CIBLE-FR).pdf $(CIBLE-EN)/index.html: $(SRC) rm -rf $(CIBLE-EN) sgmltools -b html -v -s $(CIBLE).dsl'#html' $(CIBLE-EN).sgml $(CIBLE-EN).ps: $(SRC) sgmltools -b ps -v -s $(CIBLE).dsl'#print' $(CIBLE-EN).sgml $(CIBLE-EN).rtf: $(SRC) sgmltools -b rtf $(CIBLE-EN).sgml $(CIBLE-EN).txt: $(SRC) sgmltools -b txt $(CIBLE-EN).sgml $(CIBLE-EN).pdf: $(SRC) ps2pdf $(CIBLE-EN).ps $(CIBLE-EN).pdf bull: all rm -f $(BULLDIR)/$(CIBLE)-FR/images cp -a $(SRC) $(CIBLE).spec $(CIBLE)-FR $(CIBLE)-FR.pdf ../mirror ../images $(BULLDIR) (cd $(BULLDIR)/$(CIBLE)-FR ; ln -sf ../images images) find $(BULLDIR) -type f -exec chmod 644 {} \; find $(BULLDIR) -type d -exec chmod 755 {} \; echo "Sous http://bull/linux/HP-Howto/$(CIBLE)-FR" | mutt bco -s "$(CIBLE) Version $(VER) (Mise à jour)" web: rm -rf $(DESTDIR) mkdir $(DESTDIR) tar cf - * ../mirror ../images | rsh www2 "(cd $(DESTDIR) ; tar xvf -)" cp -a /usr/src/redhat/RPMS/noarch/$(CIBLE)-$(VER)-1.noarch.rpm $(DESTDIR)/$(CIBLE-FR)-$(VER).noarch.rpm cp -a /usr/src/redhat/SRPMS/$(CIBLE)-$(VER)-1.src.rpm $(DESTDIR) find $(DESTDIR) -type f -exec chmod 644 {} \; find $(DESTDIR) -type d -exec chmod 755 {} \; install: all rm -rf $(INSTALL_DIR)/usr/doc/$(CIBLE)-$(VER) mkdir -p $(INSTALL_DIR)/usr/doc/$(CIBLE)-$(VER) cp -a * $(INSTALL_DIR)/usr/doc/$(CIBLE)-$(VER) rpm: $(SRC) $(CIBLE).spec rm -rf ../$(CIBLE)-$(VER) mkdir -p ../$(CIBLE)-$(VER) cp -a $(SRC) ../$(CIBLE)-$(VER) cp -a ../images ../$(CIBLE)-$(VER) (cd .. ; tar cfz $(SOURCES)/$(CIBLE)-$(VER).tar.gz $(CIBLE)-$(VER) images/*.eps images/*.gif) echo "%define version $(VER)" > $(SPECS)/$(CIBLE).spec cat $(CIBLE).spec >> $(SPECS)/$(CIBLE).spec (cd $(SPECS) ; rpm -ba $(CIBLE).spec) bco: rpm echo "Sources du HP-HOWTO" | mutt bruno@victoria.frmug.org -c bco -a $(CIBLE).spec -a $(SOURCES)/$(CIBLE)-$(VER).tar.gz -s "$(CIBLE) Sources Version $(VER)" livhp: all zip -v $(CIBLE)-$(VER).zip $(CIBLE-FR).pdf $(CIBLE-FR).rtf echo "Voici la mise à jour du HP-HOWTO" | mutt marc_hia-balie@hp.com -c bruno -a $(CIBLE)-$(VER).zip -s "$(CIBLE) Version $(VER)"