1DESTDIR ?= 2PREFIX ?= /usr/local 3MANDIR ?= $(PREFIX)/share/man 4 5DOXYGEN := $(shell command -v doxygen 2> /dev/null) 6DOXYGENFLAGS = 7 8.PHONY: all 9all: 10ifndef DOXYGEN 11 $(warning "doxygen is not available please install it") 12else 13 $(DOXYGEN) $(DOXYGENFLAGS) 14endif 15 16.PHONY: clean 17clean: 18ifdef DOXYGEN 19 rm -Rf html 20 rm -Rf man 21endif 22 23.PHONY: install 24install: 25ifdef DOXYGEN 26 install -d $(DESTDIR)$(MANDIR)/man3 27 install man/man3/libtinyalsa-pcm.3 $(DESTDIR)$(MANDIR)/man3 28 install man/man3/libtinyalsa-mixer.3 $(DESTDIR)$(MANDIR)/man3 29endif 30