summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.each.tail
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-07 02:38:08 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-07 02:38:08 -0400
commitd10902f55ae7aed2eeffedcd29d8ced80ec903ba (patch)
tree135c72aaa9c1a1fc73ff4a6ea0fdd89cb1f59ba1 /build-aux/Makefile.each.tail
parente7af93b77b33c6cb9241d5c72283357682394a96 (diff)
Makefile tidy
Diffstat (limited to 'build-aux/Makefile.each.tail')
-rw-r--r--build-aux/Makefile.each.tail/30-automake2autothing.mk27
-rw-r--r--build-aux/Makefile.each.tail/30-directory-info.mk (renamed from build-aux/Makefile.each.tail/30-module.mk)0
2 files changed, 27 insertions, 0 deletions
diff --git a/build-aux/Makefile.each.tail/30-automake2autothing.mk b/build-aux/Makefile.each.tail/30-automake2autothing.mk
new file mode 100644
index 0000000000..77320da714
--- /dev/null
+++ b/build-aux/Makefile.each.tail/30-automake2autothing.mk
@@ -0,0 +1,27 @@
+std.out_files += $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES)
+std.sys_files += $(addprefix $(libdir)/,$(lib_LTLIBRARIES))
+
+std.out_files += $(bin_PROGRAMS) $(libexec_PROGRAMS)
+std.sys_files += $(addprefix $(bindir)/,$(bin_PROGRAMS))
+std.sys_files += $(addprefix $(libexecdir)/,$(libexec_PROGRAMS))
+
+std.out_files += $(notdir $(pkgconfiglib_DATA))
+std.sys_files += $(addprefix $(pkgconfiglibdir)/,$(notdir $(lib_pkgconfiglib_DATA)))
+
+$(foreach n,$(call automake_name,$(std.out_files)),\
+ $(eval $n_SOURCES ?=)\
+ $(eval nodist_$n_SOURCES ?=)\
+ $(eval $n_CFLAGS ?=)\
+ $(eval $n_CPPFLAGS ?=)\
+ $(eval $n_LDFLAGS ?=)\
+ $(eval $n_LIBADD ?=))
+$(foreach t,$(filter %.la,$(std.out_files)),\
+ $(eval $(outdir)/$t: $(call at.path,$(call automake_lo,$t) $(call automake_libs,$t)) )\
+ $(eval am.CFLAGS += $($(call automake_name,$t)_CFLAGS) )\
+ $(eval am.CPPFLAGS += $($(call automake_name,$t)_CPPFLAGS) )\
+ $(eval am.LDFLAGS += $($(call automake_name,$t)_LDFLAGS) ))
+$(foreach t,$(bin_PROGRAMS) $(libexec_PROGRAMS),\
+ $(eval $(outdir)/$t: $(call at.path,$(call automake_o,$t) $(call automake_libs,$t)) )\
+ $(eval am.CFLAGS += $($(call automake_name,$t)_CFLAGS) )\
+ $(eval am.CPPFLAGS += $($(call automake_name,$t)_CPPFLAGS) )\
+ $(eval am.LDFLAGS += $($(call automake_name,$t)_LDFLAGS) ))
diff --git a/build-aux/Makefile.each.tail/30-module.mk b/build-aux/Makefile.each.tail/30-directory-info.mk
index 10ebc4c1de..10ebc4c1de 100644
--- a/build-aux/Makefile.each.tail/30-module.mk
+++ b/build-aux/Makefile.each.tail/30-directory-info.mk