# Makefile for generating DJGPP FAQ list in a variety of formats # Makefile de la version francaise, a ce jour (15/2/97), html ne fonctionne pas SOURCES = djfrfaq.txi frfaqmac.txi faq-addr.txi faq-vers.txi all: djfrfaq.info djfrfaq.txt # frfaq.html djgppfaq.dvi djgppfaq.ps djfrfaq.inf: djfrfaq.info djfrfaq.info: djfrfaq.num makeinfo --no-split --fill-column 78 -o $@ $< djfrfaq.num: $(SOURCES) enum ./enum $< $@ enum: enum.c gcc -Wall -O2 -s -o $@ $< #frfaq.htm: frfaq.html #frfaq.html: djgfrfaq.html htmsplit # ./htmsplit djgfrfaq.html frfaq #djgfrfaq.html: djgfrfaq.num htmlprep.sed concepts.idx programs.idx # sed -f htmlprep.sed $< > frfaq.tmp # makeinfo --no-validate --no-split --no-headers --fill-column 200 -Dhtml -o $@ frfaq.tmp concepts.idx programs.idx: indices.sed htmlidx.sed djfrfaq.info sed -n -f indices.sed djfrfaq.info sed -n -f htmlidx.sed concepts.tmp > concepts.idx sed -n -f htmlidx.sed programs.tmp > programs.idx #htmsplit: htmsplit.c # gcc -Wall -O2 -s -o $@ $< djfrfaq.txt: djfrfaq.num chapxref.sed idxref.sed chapters.tmp contents.idx sed -f chapxref.sed chapters.tmp > textprep.tmp @echo 'The following command may take a long time. Be patient.' sed -f textprep.tmp $< > djfrfaq.tmp makeinfo --no-split --no-headers --no-validate --fill-column 78 -Dtext -o txt.tmp djfrfaq.tmp sed -f idxref.sed chapters.tmp > textpost.tmp sed -f textpost.tmp txt.tmp > $@ contents.idx: djfrfaq.num contents.sed sed -n -f contents.sed $< > $@ chapters.tmp: djfrfaq.num chapters.sed sed -n -f chapters.sed $< > $@ macro.exp: makefile $(SOURCES) htmlprep.sed sed -f htmlprep.sed djfrfaq.txi > frfaq.tmp makeinfo --no-validate --no-split --no-headers --fill-column 100 -Dhtml -E macro.exp -o /dev/null frfaq.tmp clean: ifdef COMSPEC command > nul /c for %f in (*.tmp *.idx *.exe *.num enum htmsplit djfrfaq.htm) do if exist %f del %f else rm -f *.tmp *.idx *.exe *.num enum # htmsplit djfrfaq.htm* endif distclean: clean realclean: distclean ifdef COMSPEC command > nul /c for %f in (*.htm *.inf *.ps *.dvi *.txt) do if exist %f del %f else rm -f *.htm* *.inf* *.ps *.dvi *.txt endif love: @echo 'Not war!' coffee: @echo 'Not yet. Maybe in v3.x...'