| 1 |
## GNU makefile for opusfile documentation. |
| 2 |
|
| 3 |
-include ../package_version |
| 4 |
|
| 5 |
all: doxygen |
| 6 |
|
| 7 |
doxygen: Doxyfile ../include/opusfile.h |
| 8 |
doxygen |
| 9 |
|
| 10 |
pdf: doxygen |
| 11 |
make -C latex |
| 12 |
|
| 13 |
clean: |
| 14 |
$(RM) -r html |
| 15 |
$(RM) -r latex |
| 16 |
|
| 17 |
distclean: clean |
| 18 |
$(RM) Doxyfile |
| 19 |
|
| 20 |
.PHONY: all clean distclean doxygen pdf |
| 21 |
|
| 22 |
../package_version: |
| 23 |
@if [ -x ../update_version ]; then \ |
| 24 |
../update_version || true; \ |
| 25 |
elif [ ! -e $@ ]; then \ |
| 26 |
echo 'PACKAGE_VERSION="unknown"' > $@; \ |
| 27 |
fi |
| 28 |
|
| 29 |
# run autoconf-like replacements to finalize our config |
| 30 |
Doxyfile: Doxyfile.in Makefile ../package_version |
| 31 |
sed -e 's/@PACKAGE_NAME@/opusfile/' \ |
| 32 |
-e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/' \ |
| 33 |
-e 's/@HAVE_DOT@/yes/' \ |
| 34 |
-e 's/@top_srcdir@/../' \ |
| 35 |
< $< > $@ |