X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=7f598d548b6f62ee8d92fa66256642c3233578d9;hb=7a5132c93cde8ce79bbea3dc4568ffa5f42ec5cf;hp=bc0d6ed7cd4fc9e9ed71f05461ccd8fc06170615;hpb=975357d614c27b81fbd65162a72d66d3b1a16a57;p=osl.git diff --git a/Makefile b/Makefile index bc0d6ed..7f598d5 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ MKDIR := mkdir -p RM := rm -f LN := ln LD := ld +M4 := m4 -g OBJCOPY := objcopy # libosl's versioning consists of three numbers. Let's call them x, y and z. @@ -109,10 +110,10 @@ $(realname): $(objects) errtab.h: errlist sed -e 's/^\([A-Z_]*\)\s*\(.*\)/OSL_ERROR(E_OSL_\1, \2)/g' $< > $@ -osl.h: osl.h.in errlist Makefile +osl.h: osl.h.m4 errlist Makefile echo '#ifndef _OSL_H' > $@ echo '#define _OSL_H' >> $@ - cat osl.h.in >> $@ + $(M4) -DOUTPUT_MODE=C gendoc.m4 $< >> $@ echo '/** public error codes of the osl library. */' >> $@ sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \ -e '1s/^/enum osl_errors {/1' \ @@ -125,7 +126,6 @@ clean: distclean: clean rm -f web/index.html web/oslfsck.1.html web/osl.png - rm -rf web/doxygen install-bin: $(executables) $(MKDIR) $(bindir) @@ -143,7 +143,7 @@ install-lib: $(realname) $(headers) $(INSTALL) -m 644 $(headers) $(includedir) install: all install-bin install-man install-lib -www: web/index.html web/osl.png web/doxygen/index.html +www: web/index.html web/osl.png web/api.html .PHONY: all shared clean install install-bin install-man install-lib www @@ -161,6 +161,7 @@ web/index.html: oslfsck.1 web/index.html.in INSTALL README QUICK_START groff -m man -Thtml -P -l oslfsck.1 | sed -e '1,/^/d; /^<\/body>/,$$d' >> $@ sed -e '1,/@MAN_PAGE@/d' web/index.html.in >> $@ -web/doxygen/index.html: $(wildcard *.c *.h) web/Doxyfile web/header.html \ - web/footer.html - doxygen web/Doxyfile +web/api.html: osl.h.m4 web/header.html web/footer.html + cat web/header.html > $@ + $(M4) -DOUTPUT_MODE=HTML gendoc.m4 $< >> $@ + cat web/footer.html >> $@