]> mj.ucw.cz Git - libucw.git/blobdiff - build/Maketop
Makefiles: implement a symlink-alias macro.
[libucw.git] / build / Maketop
index 1ac82d98336633282cf30f87c336ad0a9987b755..99f7f1dc8acfa5f0ec95a537fddee807746c5464 100644 (file)
@@ -4,6 +4,9 @@
 # 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 in build/installer
+CONFIRM=
+
 # Disable all built-in rules and variables. Speeds up make and simplifies debugging.
 MAKEFLAGS+=-rR
 
@@ -77,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)