diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-04 17:06:17 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-04 17:06:17 -0400 |
commit | 9c9b5ae7cf7d79c83a62d6842f50b6b8a1ae1183 (patch) | |
tree | f4111237b0e651e1460386a3181c13539a01fbba /build-aux/Makefile.each.tail/20-systemd.mk | |
parent | 41463469a994bd378c052ab059eb9c4e84670951 (diff) |
stuff
Diffstat (limited to 'build-aux/Makefile.each.tail/20-systemd.mk')
-rw-r--r-- | build-aux/Makefile.each.tail/20-systemd.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build-aux/Makefile.each.tail/20-systemd.mk b/build-aux/Makefile.each.tail/20-systemd.mk index 523d22cb6b..e70a71ce90 100644 --- a/build-aux/Makefile.each.tail/20-systemd.mk +++ b/build-aux/Makefile.each.tail/20-systemd.mk @@ -42,7 +42,11 @@ _systemd.rpath = $(dir $(patsubst $(DESTDIR)%,%,$(filter %/$(@F),$(std.sys_files _systemd.patsubst-all = $(if $1,$(call _systemd.patsubst-all,$(wordlist 2,$(words $1),$1),$2,$(patsubst $(firstword $1),$2,$3)),$3) _systemd.link_files = $(filter %.o %.lo %.la,$^) $(call _systemd.patsubst-all,$(.LIBPATTERNS),-l%,$(filter $(.LIBPATTERNS),$(notdir $^))) $(outdir)/%.la: + @if test $(words $^) = 0; then echo 'Cannot link library with no dependencies: $@' >&2; exit 1; fi $(AM_V_CCLD)$(LINK) $(if $(_systemd.rpath),-rpath $(_systemd.rpath)) $(_systemd.link_files) +$(addprefix $(outdir)/,$(bin_PROGRAMS)): $(outdir)/%: + @if test $(words $^) = 0; then echo 'Cannot link executable with no dependencies: $@' >&2; exit 1; fi + $(AM_V_CCLD)$(LINK) $(_systemd.link_files) $(DESTDIR)$(libdir)/%.la: $(outdir)/%.la $(LIBTOOL) $(ALL_LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $< $(@D) |