summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makeconf34
1 files changed, 18 insertions, 16 deletions
diff --git a/Makeconf b/Makeconf
index 27d9c327..a321ac4d 100644
--- a/Makeconf
+++ b/Makeconf
@@ -148,23 +148,25 @@ ifeq ($(makemode),library)
else
- progtarg := $(filter-out $(special-targets),$(targets))
- linktarg := $(progtarg) $(progtarg:=.static)
-
-endif
+ ifeq ($(makemode),misc)
+ ifndef doinst
+ doinst := many
+ endif
+ ifeq ($(doinst),one)
+ targets = $(target)
+ endif
+ ifeq (,$(installationdir))
+ ifneq (,$(targets))
+ ?Error subdir Makefile must define installationdir
+ else
+ makemode-instdir := NOINSTALL
+ endif
+ endif
+ else # server/utility modes
+ progtarg := $(filter-out $(special-targets),$(targets))
+ linktarg := $(progtarg) $(progtarg:=.static)
+ endif
-ifeq ($(makemode),misc)
- ifndef doinst
- doinst := many
- endif
- ifeq ($(doinst),one)
- targets = $(target)
- endif
- ifndef installationdir
- ifneq (,$(targets))
- ?Error subdir Makefile must define installationdir
- endif
- endif
endif
ifndef installationdir