File: Makefile

package info (click to toggle)
libopusenc 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,872 kB
  • sloc: sh: 4,177; ansic: 3,579; makefile: 135
file content (34 lines) | stat: -rw-r--r-- 688 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## GNU makefile for libopusenc documentation.

-include ../package_version

all: doxygen

doxygen: Doxyfile ../include/opusenc.h
	doxygen

pdf: doxygen
	make -C latex

clean:
	$(RM) -r html
	$(RM) -r latex

distclean: clean
	$(RM) Doxyfile

.PHONY: all clean distclean doxygen pdf

../package_version:
	@if [ -x ../update_version ]; then \
		../update_version || true; \
	elif [ ! -e $@ ]; then \
		echo 'PACKAGE_VERSION="unknown"' > $@; \
	fi

# run autoconf-like replacements to finalize our config
Doxyfile: Doxyfile.in Makefile ../package_version
	sed -e 's/@PACKAGE_NAME@/libopusenc/' \
	    -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/' \
	    -e 's/@top_srcdir@/../' \
	  < $< > $@