]> git.llucax.com Git - software/posixx.git/blob - doc/Makefile
Preserve installed headers timestamps
[software/posixx.git] / doc / Makefile
1
2
3 # prefix for installing the binaries and headers
4 prefix=/usr/local
5
6
7 ifneq ($(V), 1)
8 NICE_DOXY = @echo "  DOXYGEN"; (cat Doxyfile; echo "QUIET=YES") | doxygen -
9 NICE_CLEAN = @echo "  CLEAN"; $(RM)
10 NICE = @
11 else
12 NICE_DOXY = doxygen
13 NICE_CLEAN = $(RM) -v
14 NICE =
15 endif
16
17
18 default: all
19
20 all: doc
21
22 doc: include
23         $(NICE_DOXY)
24
25 install: install-man install-html
26
27 install-man: doc
28         $(NICE) for f in `find reference/man -type f | cut -b11-`; do \
29                 echo "  INSTALL $(prefix)/share/$$f"; \
30                 install -p -m 0644 -D reference/$$f $(prefix)/share/$$f; \
31         done
32
33 install-html: doc
34         $(NICE) for f in `find reference/html -type f | cut -b11-`; do \
35                 echo "  INSTALL $(prefix)/share/doc/posixx/$$f"; \
36                 install -p -m 0644 -D reference/$$f $(prefix)/share/doc/posixx/$$f; \
37         done
38
39 include:
40         @mkdir -p include
41         @ln -fs ../../src include/posixx
42
43 clean:
44         $(NICE_CLEAN) -r reference include
45
46 .PHONY: default all doc install install-man install-doc clean
47
48