summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.each.tail
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-01 19:29:16 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-01 19:29:16 -0400
commit524d3075ca1e93477deabb95f5c98eaed920de0b (patch)
tree65293ddcfd7421141103dbea4938ac5537022ecd /build-aux/Makefile.each.tail
parente6340af0662d276ec53daccfec5fabeea0982169 (diff)
parent23f0e469311226b141a9a1429705b0f871ffb06d (diff)
Merge branch 'lukeshu/postmove' into lukeshu/master
# Conflicts: # build-aux/Makefile.each.tail/20-systemd.mk
Diffstat (limited to 'build-aux/Makefile.each.tail')
-rw-r--r--build-aux/Makefile.each.tail/20-systemd.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/build-aux/Makefile.each.tail/20-systemd.mk b/build-aux/Makefile.each.tail/20-systemd.mk
index c1cad10809..82692ef301 100644
--- a/build-aux/Makefile.each.tail/20-systemd.mk
+++ b/build-aux/Makefile.each.tail/20-systemd.mk
@@ -40,6 +40,14 @@ $(outdir)/%.la:
$(DESTDIR)$(libdir)/%.so: $(outdir)/%.la
$(LIBTOOL) $(ALL_LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $< $(@D)
+$(outdir)/%-from-name.gperf: $(srcdir)/%-list.txt
+ $(AM_V_at)$(MKDIR_P) $(dir $@)
+ $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
+
+$(outdir)/%-from-name.h: $(srcdir)/%-from-name.gperf
+ $(AM_V_at)$(MKDIR_P) $(dir $@)
+ $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
+
$(outdir)/%: $(srcdir)/%.in
$(SED_PROCESS)