From 7e704d7ac997387341e920e1757c24cac0efe5e9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 8 Feb 2016 16:36:45 -0500 Subject: Refactor the build system. Avoid recursive make. This looks like a lot, but more things should "just work". We have `make dist` now! --- common.each.head.mk | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 common.each.head.mk (limited to 'common.each.head.mk') diff --git a/common.each.head.mk b/common.each.head.mk new file mode 100644 index 0000000..8a2a68d --- /dev/null +++ b/common.each.head.mk @@ -0,0 +1,32 @@ +pkgconfdir = $(sysconfdir)/libretools.d +pkgdocdir = $(docdir)/libretools +pkglibexecdir = $(libexecdir)/libretools + +# Detect things about the directory we're in #################################### + +ifeq ($(wildcard $(topsrcdir)/.git),) +include $(srcdir)/.srcfiles.mk +else +$(srcdir)/.srcfiles.mk: FORCE + @echo am_src_files = $(filter-out $(addsuffix /%,$(_am_subdirs/$(@D))),$(shell cd $(@D) && git ls-files)) | $(write-ifchanged) $@ +-include $(srcdir)/.srcfiles.mk +endif + +detect-ignore = +detect-ignore-exec = +detect-ignore-conf = +detect-ignore-ronn = +detect-ignore-md = HACKING.md +detect-ignore-sh = + +devtools-files = + +install-mans = $(patsubst %.ronn,%,$(detect-ronn)) +install-bins = $(detect-exec) +install-libexecs = +install-libs = $(detect-sh) +install-docs = $(detect-md) $(detect-ronn) +install-confs = $(detect-conf) + +install-files = $(install-mans) $(install-bins) $(install-libexecs) $(install-libs) $(install-docs) $(install-confs) +pots = $(install-bins) $(install-libexecs) $(install-libs) -- cgit v1.2.2