diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-10 03:44:18 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-02-10 03:44:18 +0000 |
commit | bb748f0e002c8a4f9865ae0a592fcb4fac0aabc7 (patch) | |
tree | 6b75bd7a075affb2d775829feb1a3b8549e0127d /Makefile | |
parent | 9c2bebec16aafefb9067c1db83ef3c765e13610b (diff) | |
download | execline-bb748f0e002c8a4f9865ae0a592fcb4fac0aabc7.tar.xz |
Fix symlink installation dependency rule
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -124,7 +124,12 @@ $(LIBEXEC_TARGETS:%=$(DESTDIR)$(libexecdir)/%) $(BIN_TARGETS:%=$(DESTDIR)$(bindi if [ x$$og != x ] ; then og="-O $${og}" ; fi && \ $(INSTALL) -D -m $$mode $$og $< $@ ; } -$(BIN_SYMLINKS:%=$(DESTDIR)$(bindir)/%): $(BIN_SYMLINKS:%=$(DESTDIR)$(bindir)/$(SYMLINK_TARGET_%)) +define install_symlink_rule +$(DESTDIR)$(bindir)/$(1): $(DESTDIR)$(bindir)/$$(SYMLINK_TARGET_$(1)) +endef + +$(foreach x,$(BIN_SYMLINKS),$(eval $(call install_symlink_rule,$(x)))) +$(BIN_SYMLINKS:%=$(DESTDIR)$(bindir)/%): exec $(INSTALL) -l $(SYMLINK_TARGET_$(@F)) $@ $(DESTDIR)$(libdir)/lib%.a: lib%.a.xyzzy |