summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-09-19 03:25:12 +0000
committerRoland McGrath <roland@gnu.org>1999-09-19 03:25:12 +0000
commit4e39a67ef13701e7b7fef81205fd72da796cb377 (patch)
tree8f1c8f0c1a25ccb3c212c685beabd8bf2f21831d /Makeconf
parent4b194cafd500742f928041aeefe6a3dd8324172d (diff)
1999-09-18 Roland McGrath <roland@baalperazim.frob.com>
* Makeconf [$(makemode) != misc]: Use this to protect linking rules, so we don't define any rule for $(targets) if $(makemode) is misc.
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makeconf b/Makeconf
index 3985b10f..f0b56c6f 100644
--- a/Makeconf
+++ b/Makeconf
@@ -149,6 +149,17 @@ else
linktarg := $(linktarg) $(linktarg:=.static)
endif
+ifeq ($(makemode),misc)
+ ifndef doinst
+ doinst := many
+ endif
+ ifndef installationdir
+ ifneq (,$(target)$(targets))
+ ?Error subdir Makefile must define installationdir
+ endif
+ endif
+endif
+
ifeq ($(cleantarg),)
cleantarg := $(linktarg)
endif
@@ -243,6 +254,8 @@ ifeq ($(doinst),many)
target = $(filter-out $(special-targets),$(targets))
endif
+ifneq ($(makemode),misc)
+
ifeq ($(doinst),one)
$(target) $(target).static: $(OBJS) $(OTHERLIBS) $(library_deps)
endif
@@ -326,6 +339,8 @@ ifneq ($(makemode),library)
hurd-bug-addr-dir-dep = libhurdbugaddr
endif
+endif # makemode != misc
+
directory-depend: $(..)$(dir).d
$(..)$(dir).d: $(srcdir)/Makefile
rm -f $@