2 # XXX: The cut pipe is to strip the leading "./" from find results. It's
3 # a little ugly but I couldn't find a better way to get a list of all
4 # headers in the directory (recursively).
5 HEADERS = $(shell find -name '*.hpp' | cut -b3-)
13 NICE_NOP = @echo "Nothing to do, headers only"
23 install-headers: $(HEADERS)
24 $(NICE) for f in $(HEADERS); do \
25 echo " INSTALL $(prefix)/include/$(HDRPATH)/$$f"; \
26 install -p -m 0644 -D $$f $(prefix)/include/$(HDRPATH)/$$f; \
29 install: install-headers
34 .PHONY: default all clean install-headers install