aboutsummaryrefslogtreecommitdiff
path: root/doxygen/Makefile
blob: dcc79e17fb312fbbfbfd8aa6d37ad83cd63f891a (plain)
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
DESTDIR ?=
PREFIX ?= /usr/local
MANDIR ?= $(PREFIX)/share/man

DOXYGEN := $(shell command -v doxygen 2> /dev/null)
DOXYGENFLAGS =

.PHONY: all
all:
ifndef DOXYGEN
	$(warning "doxygen is not available please install it")
else
	$(DOXYGEN) $(DOXYGENFLAGS)
endif

.PHONY: clean
clean:
ifdef DOXYGEN
	rm -Rf html
	rm -Rf man
endif

.PHONY: install
install:
ifdef DOXYGEN
	mkdir -p $(DESTDIR)$(MANDIR)/man3
	cp -u man/man3/tinyalsa-pcm.3 $(DESTDIR)$(MANDIR)/man3
	cp -u man/man3/tinyalsa-mixer.3 $(DESTDIR)$(MANDIR)/man3
endif