summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-03-14 22:26:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-03-14 22:26:07 +0000
commit1e6f50c7c7f9202114be4e300807623ddbf77255 (patch)
treeea38d746c46257509464ee3b0e72fc6bf31ab455 /Makefile
parenta32717268571cbe55c00576e32983693e06daf21 (diff)
downloads6-linux-init-1e6f50c7c7f9202114be4e300807623ddbf77255.tar.xz
Fix update/global-links dependencies
Empty env in stage 1, add option to dump it somewhere
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5b8657..403f6d4 100644
--- a/Makefile
+++ b/Makefile
@@ -89,9 +89,11 @@ install-data: $(ALL_DATA:src/etc/%=$(DESTDIR)$(datadir)/%)
ifneq ($(exthome),)
-update:
+$(DESTDIR)$(exthome): $(home)
exec $(INSTALL) -l $(notdir $(home)) $(DESTDIR)$(exthome)
+update: $(DESTDIR)$(exthome)
+
global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(sproot)/library.so/lib%.so.$(version_M)) $(BIN_TARGETS:%=$(DESTDIR)$(sproot)/command/%) $(SBIN_TARGETS:%=$(DESTDIR)$(sproot)/command/%)
$(DESTDIR)$(sproot)/command/%: $(DESTDIR)$(home)/command/%