* only calculate the OS once and immediately only if necessary
authorBernd Petrovitsch <bernd@firmix.at>
Tue, 3 Apr 2007 10:10:10 +0000 (10:10 +0000)
committerBernd Petrovitsch <bernd@firmix.at>
Tue, 3 Apr 2007 10:10:10 +0000 (10:10 +0000)
Makefile.inc

index 7c61b1d..7a4ec9e 100644 (file)
@@ -49,7 +49,9 @@ HDRS +=               $(wildcard *.h)
 all: default_target
 
 # OS detection
-OS =           $(shell sh $(TOPDIR)/make/guess_os.sh)
+ifeq ($(OS),)
+OS :=          $(shell sh $(TOPDIR)/make/guess_os.sh)
+endif
 ifeq ($(OS),UNKNOWN)
 all: help
 else