81a5118a1d39f333039525c520ec7c3b30b943cd
[olsrd.git] / lib / pud / nmealib / doc / Makefile
1 include ../Makefile.inc
2
3 .PHONY: all clean
4
5 clean:
6         rm -fr html latex man nmealib.pdf
7
8 all: clean nmea.doxygen
9         @echo "Updating version..."
10         @sed -r "s/^([[:space:]]*PROJECT_NUMBER[[:space:]]*=).*/\1 $(GITVERSION)/" nmea.doxygen > nmea.doxygen.temp
11         @echo "Generating HTML and man pages..."
12         @doxygen nmea.doxygen.temp
13         @rm nmea.doxygen.temp
14         @echo "Generating PDF..."
15         @make -C latex -s > /dev/null 2>&1
16         @mv latex/refman.pdf nmealib.pdf
17         @rm -fr latex
18         @echo "Done"