Files
third_party_tinyalsa/doxygen/Makefile
T
David Wagner 8da2916570 Fix the installation of manpages
The name of man pages was incorrect. Also, using the coreutils'
"install" command makes sense when installing files.

Signed-off-by: David Wagner <david.wagner@intel.com>
2016-11-22 14:54:14 +01:00

30 lines
533 B
Makefile

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
install -d $(DESTDIR)$(MANDIR)/man3
install man/man3/libtinyalsa-pcm.3 $(DESTDIR)$(MANDIR)/man3
install man/man3/libtinyalsa-mixer.3 $(DESTDIR)$(MANDIR)/man3
endif