diff options
Diffstat (limited to 'doxygen')
-rw-r--r-- | doxygen/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doxygen/Makefile b/doxygen/Makefile index 5f8c5c0..dcc79e1 100644 --- a/doxygen/Makefile +++ b/doxygen/Makefile @@ -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 |