X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/7b35c34eaa3ee421eb5effc63801aeff69a9ffe8..e4930f73369d967703ae76f10c6cb1c329f5a7e2:/src/Makefile?ds=inline diff --git a/src/Makefile b/src/Makefile index 0144cf1..17a2e2c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,35 +1,10 @@ -# XXX: The cut pipe is to strip the leading "./" from find results. It's -# a little ugly but I couldn't find a better way to get a list of all -# headers in the directory (recursively). -HEADERS = $(shell find -name '*.hpp' | cut -b3-) -HDRPATH = posixx +# Top-level directory +T := .. +# Default goal for building this directory +.DEFAULT_GOAL := posixx -ifneq ($(V), 1) -NICE_NOP = -NICE = @ -else -NICE_NOP = @echo "Nothing to do, headers only" -NICE = -endif - - -default: all - -all: - $(NICE_NOP) - -install-headers: $(HEADERS) - $(NICE) for f in $(HEADERS); do \ - echo " INSTALL $(prefix)/include/$(HDRPATH)/$$f"; \ - install -m 0644 -D $$f $(prefix)/include/$(HDRPATH)/$$f; \ - done - -install: install-headers - -clean: - $(NICE_NOP) - -.PHONY: default all clean install-headers install +# Include the top-level build +include $T/Toplevel.mak