summaryrefslogtreecommitdiff
path: root/source4/build/make
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-03-09 00:49:39 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-03-09 00:49:39 +0100
commita4b6992b7023d5b67428739c29aa9948d76fca21 (patch)
tree27d7f2bcb4294ab900c3eb5cbe87ccd9b63963e2 /source4/build/make
parent7bb0d0b649eab94a3339c9d0f2f704a2eb0a6101 (diff)
downloadsamba-a4b6992b7023d5b67428739c29aa9948d76fca21.tar.gz
samba-a4b6992b7023d5b67428739c29aa9948d76fca21.tar.bz2
samba-a4b6992b7023d5b67428739c29aa9948d76fca21.zip
Move more code out of perl build system.
(This used to be commit bfb4d847005567da43e93987add1a7b171b7b192)
Diffstat (limited to 'source4/build/make')
-rw-r--r--source4/build/make/rules.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/build/make/rules.mk b/source4/build/make/rules.mk
index 6ea187f376..3c4f4081ea 100644
--- a/source4/build/make/rules.mk
+++ b/source4/build/make/rules.mk
@@ -144,14 +144,19 @@ $(1): $(2)
@mkdir -p $$(@D)
@$$(SHLD) $$(LDFLAGS) $$(SHLD_FLAGS) $$(INTERN_LDFLAGS) -o $$@ $$(INSTALL_LINK_FLAGS) \
$(3) \
- $$(if $$(SONAMEFLAG), $$(SONAMEFLAG)$(4))
+ $$(if $$(SONAMEFLAG), $$(SONAMEFLAG)$(notdir $(4)))
-ifneq ($(notdir $(1)), $(notdir $(4)))
+ifneq ($(notdir $(1)),$(notdir $(4)))
$(4): $(1)
@echo "Creating symbolic link for $(4)"
@ln -fs $(notdir $(4)) $(1)
endif
+ifneq ($(notdir $(1)),$(notdir $(5)))
+$(5): $(1)
+ @echo "Creating symbolic link for $(5)"
+ @ln -fs $(notdir $(5)) $(1)
+endif
endef
# Shared alias