mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-19 23:33:30 -04:00
Merge pull request #82 from maximeh/master
doxygen/Makefile: test if doxygen is available
This commit is contained in:
+9
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user