X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=man%2FMakefile.in;h=abfcd4143da770a901467673e700e00706bdf75f;hb=dd2e898a13855acd7034a2ee73584995d7452f4f;hp=9a27e82aed3753c55ba39fdc59279b43fdc35aa5;hpb=501f523802eeaed49dc095c9577a9e5f20447a6d;p=mmh diff --git a/man/Makefile.in b/man/Makefile.in index 9a27e82..abfcd41 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -76,10 +76,16 @@ all: $(MAN1) $(MAN5) $(MAN7) $(MAN8) mh-chart.man7: $(ALLPROGS) $(srcdir)/mh-chart-gen.sh $(ALLPROGS) >$@ +titles: + $(srcdir)/gettitles.sh $(srcdir) 1 >titles1.temp + $(srcdir)/gettitles.sh $(srcdir) 5 >titles5.temp + $(srcdir)/gettitles.sh $(srcdir) 7 >titles7.temp + $(srcdir)/gettitles.sh $(srcdir) 8 >titles8.temp + $(MAN1) $(MAN5) $(MAN7) $(MAN8): man.sed # create the sed file for building man pages -man.sed: Makefile +man.sed: Makefile titles @echo 's,%nmhwarning%,THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.,g' > $@ @echo 's,%nmhversion%,mmh-$(VERSION),g' >> $@ @echo 's,%nmhdate%,$(DATE),g' >> $@ @@ -105,6 +111,11 @@ man.sed: Makefile @echo ' s,%mhl_format%,,g' >> $@ @echo '/%mhl_reply%/r $(top_srcdir)/etc/mhl.reply' >> $@ @echo ' s,%mhl_reply%,,g' >> $@ + @echo '/^%titles1%$$/r titles1.temp' >> $@ + @echo '/^%titles5%$$/r titles5.temp' >> $@ + @echo '/^%titles7%$$/r titles7.temp' >> $@ + @echo '/^%titles8%$$/r titles8.temp' >> $@ + @echo '/^%titles[0-9]%$$/d' >> $@ # ========= INSTALL TARGETS ========= @@ -174,6 +185,7 @@ mostlyclean: clean: mostlyclean rm -f $(MAN1) $(MAN5) $(MAN7) $(MAN8) rm -f man.sed mh-chart.man7 + rm -f titles[0-9].temp distclean: clean rm -f Makefile