automatic man page generation from tcc-doc.texi

This commit is contained in:
bellard
2003-05-18 18:11:06 +00:00
parent 6cdf6f88d7
commit f0d5a74bcd
3 changed files with 460 additions and 8 deletions

View File

@ -21,7 +21,7 @@ INSTALL=install
# run local version of tcc with local libraries and includes
TCC=./tcc -B. -I.
all: tcc libtcc1.o bcheck.o tcc-doc.html libtcc.a libtcc_test
all: tcc libtcc1.o bcheck.o tcc-doc.html tcc.1 libtcc.a libtcc_test
Makefile: config.mak
@ -123,7 +123,7 @@ bcheck.o: bcheck.c
install: tcc_install libinstall
tcc_install: tcc libtcc1.o bcheck.o
tcc_install: tcc tcc.1 libtcc1.o bcheck.o
$(INSTALL) -m755 tcc $(bindir)
$(INSTALL) tcc.1 $(mandir)/man1
mkdir -p $(libdir)/tcc
@ -135,7 +135,7 @@ tcc_install: tcc libtcc1.o bcheck.o
clean:
rm -f *~ *.o tcc tcc1 tcct tcc_g tcctest.ref *.bin *.i ex2 \
core gmon.out test.out test.ref a.out tcc_p \
*.exe tcc-doc.html libtcc.a libtcc_test \
*.exe tcc-doc.html tcc.pod tcc.1 libtcc.a libtcc_test \
tcctest[1234] test[1234].out
distclean: clean
@ -201,10 +201,14 @@ cache: tcc_g
cachegrind ./tcc_g -o /tmp/linpack -lm bench/linpack.c
vg_annotate tcc.c > /tmp/linpack.cache.log
# documentation
# documentation and man page
tcc-doc.html: tcc-doc.texi
texi2html -monolithic -number $<
tcc.1: tcc-doc.texi
./texi2pod.pl $< tcc.pod
pod2man --section=1 --center=" " --release=" " tcc.pod > $@
FILES= Makefile Makefile.uClibc configure VERSION \
README TODO COPYING \
Changelog tcc-doc.texi tcc-doc.html \