]> git.llucax.com Git - software/posixx.git/blobdiff - src/Makefile
Use makeit build system
[software/posixx.git] / src / Makefile
index 1a8fb03ed96eee0afc20dafecc4d68fe5f33ddc6..17a2e2c0768759213779b72317f65c4d1fa75fd8 100644 (file)
@@ -1,50 +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
 
-# prefix for installing the binaries
-prefix = /usr/local
-
-
-# install command
-INSTALL = install -p -m 0644 -D
-
-
-# install utility functions
-install_msg = echo "  INSTALL $(1)"
-
-install_files = @$(call install_msg,$(2)) && \
-       for f in $(1); do \
-               $(call install,$$f,$(2)/$$f); \
-       done && \
-       touch $@
-
-ifneq ($(V), 1)
-NICE_CLEAN = @echo "  CLEAN"; $(RM)
-install = $(INSTALL) $(1) $(2)
-else
-NICE_CLEAN = $(RM) -v
-install = $(call install_msg,$(2)); $(INSTALL) $(1) $(2)
-endif
-
-
-default: all
-
-all:
-
-install: install-headers
-
-install-headers: .install-headers-stamp
-
-.install-headers-stamp: $(HEADERS)
-       $(call install_files,$^,$(prefix)/include/$(HDRPATH))
-
-clean:
-       $(NICE_CLEAN) .*-stamp
-
-.PHONY: default all install install-headers clean
+# Include the top-level build
+include $T/Toplevel.mak