2 # sources from where to build the sources
3 DOC_SOURCES = $(shell find ../src -name '*.hpp')
5 # prefix for installing the binaries and headers
10 INSTALL = install -p -m 0644 -D
13 # install utility functions
14 install_msg = echo " INSTALL $(1)"
16 install_group = @$(call install_msg,$(2)) && \
18 for f in `find $(1) -type f`; do \
19 $(call install,$$f,$(2)/$$f); \
25 NICE_DOXY = @echo " DOXYGEN"; (cat Doxyfile; echo "QUIET=YES") | doxygen -
26 NICE_CLEAN = @echo " CLEAN"; $(RM)
27 install = $(INSTALL) $(1) $(2)
31 install = $(call install_msg,$(2)); $(INSTALL) $(1) $(2)
41 .doc-stamp: include $(DOC_SOURCES) Doxyfile
45 install: install-man install-html
47 install-man: .install-man-stamp
49 .install-man-stamp: .doc-stamp
50 $(call install_group,man,$(prefix)/share/man)
52 install-html: .install-html-stamp
54 .install-html-stamp: .doc-stamp
55 $(call install_group,html,$(prefix)/share/doc/posixx/html)
59 @ln -fs ../../src include/posixx
62 $(NICE_CLEAN) -r reference include .*-stamp
64 .PHONY: default all doc install install-man install-doc clean