Merge pull request #82 from maximeh/master

doxygen/Makefile: test if doxygen is available
This commit is contained in:
Taylor Holberton
2016-11-03 16:49:24 -04:00
committed by GitHub
+9 -2
View File
@@ -2,21 +2,28 @@ DESTDIR ?=
PREFIX ?= /usr/local
MANDIR ?= $(PREFIX)/share/man
DOXYGEN ?= doxygen
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