]> mj.ucw.cz Git - libucw.git/blobdiff - build/Maketop
Makefiles: implement a symlink-alias macro.
[libucw.git] / build / Maketop
index 4496f9f2dcf019fcf9a5d16de9509680c083307e..99f7f1dc8acfa5f0ec95a537fddee807746c5464 100644 (file)
@@ -4,7 +4,7 @@
 # Set to 1 if you want verbose output
 V=0
 
-# Set to 'y' (or 'n') if you want to auto-confirm (auto-reject) all questions
+# Set to 'y' (or 'n') if you want to auto-confirm (auto-reject) all questions in build/installer
 CONFIRM=
 
 # Disable all built-in rules and variables. Speeds up make and simplifies debugging.
@@ -80,3 +80,4 @@ space:=$(empty) $(empty)
 backref=$(subst $(space),/,$(patsubst %,..,$(subst /,$(space),$(1))))
 tack-on=$(if $(patsubst /%,,$(2)),$(1)/$(2),$(2))
 symlink=ln -sf $(call tack-on,$(call backref,$(2)),$(1)) $(2)/
+symlink-alias=ln -sf $(call tack-on,$(call backref,$(2)),$(1)) $(2)/$(3)