X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/584107ebdc413a0f2a27d24055982265798ca21a..d22d22101e7dda5da951a76408ec32708072849e:/src/Makefile diff --git a/src/Makefile b/src/Makefile index 23fde57..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 -p -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