summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-12 22:52:47 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-12 22:52:47 -0400
commite8004017a63aa107497c2825d4082de9f32dd93d (patch)
tree6d90ad01dcc384593ed1795ca8f25bcd8eafd408
parentcaf5e809e6f8ac96185636c224aba15431a08dc6 (diff)
build system: support INSTALL_DIRS
-rw-r--r--build-aux/Makefile.each.head/00-sd.mk3
-rw-r--r--build-aux/Makefile.each.tail/50-sd.mk3
2 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/Makefile.each.head/00-sd.mk b/build-aux/Makefile.each.head/00-sd.mk
index 43d1625245..e803751eb6 100644
--- a/build-aux/Makefile.each.head/00-sd.mk
+++ b/build-aux/Makefile.each.head/00-sd.mk
@@ -4,3 +4,6 @@ sd.LDFLAGS ?=
sd.LIBTOOLFLAGS ?=
sd.sed_files ?=
+
+INSTALL_DIRS ?=
+files.sys.all += $(INSTALL_DIRS)
diff --git a/build-aux/Makefile.each.tail/50-sd.mk b/build-aux/Makefile.each.tail/50-sd.mk
index b7afb178a2..1cba80ce2b 100644
--- a/build-aux/Makefile.each.tail/50-sd.mk
+++ b/build-aux/Makefile.each.tail/50-sd.mk
@@ -83,6 +83,9 @@ endif
# $(SED_PROCESS)
# $(AM_V_GEN)chmod +x $@
+$(addprefix $(DESTDIR),$(INSTALL_DIRS)): %:
+ mkdir -p -- $@
+
$(outdir)/%.c: $(srcdir)/%.gperf
$(AM_V_GPERF)$(GPERF) < $< > $@
$(outdir)/%.c: $(outdir)/%.gperf