summaryrefslogtreecommitdiffstats
path: root/make/include
diff options
context:
space:
mode:
Diffstat (limited to 'make/include')
-rw-r--r--make/include/base.defs19
-rw-r--r--make/include/base.rules16
-rw-r--r--make/include/main.defs8
-rw-r--r--make/include/main.rules16
4 files changed, 33 insertions, 26 deletions
diff --git a/make/include/base.defs b/make/include/base.defs
index 3b4e666f3..4e6da0e64 100644
--- a/make/include/base.defs
+++ b/make/include/base.defs
@@ -24,6 +24,8 @@ endef
## $(1) module name (uppercase)
##
define import.MODULE.rules
+.PHONY: $($(1).name).build $($(1).name).clean
+
$($(1).name).report:
@$(MAKE) report.true REPORT=module REPORT.module=$(1)
@@ -31,20 +33,3 @@ $($(1).name).report:
report.modules:: $($(1).name).report
endef
-
-.PHONY: report.main report.gcc report.modules
-
-report.modules::
-
-.PHONY: report.main
-report.main:
- @$(MAKE) report.true REPORT=main
-
-.PHONY: report.gcc
-report.gcc:
- @$(MAKE) report.true REPORT=gcc
-
-## needed for nested make (which drives each report)
-.PHONY: report.true
-report.true:
- @true
diff --git a/make/include/base.rules b/make/include/base.rules
new file mode 100644
index 000000000..f12886432
--- /dev/null
+++ b/make/include/base.rules
@@ -0,0 +1,16 @@
+.PHONY: report.main report.gcc report.modules
+
+report.modules::
+
+.PHONY: report.main
+report.main:
+ @$(MAKE) report.true REPORT=main
+
+.PHONY: report.gcc
+report.gcc:
+ @$(MAKE) report.true REPORT=gcc
+
+## needed for nested make (which drives each report)
+.PHONY: report.true
+report.true:
+ @true
diff --git a/make/include/main.defs b/make/include/main.defs
index 45fb178ae..93271a365 100644
--- a/make/include/main.defs
+++ b/make/include/main.defs
@@ -1,11 +1,3 @@
-.DELETE_ON_ERROR:
-.SUFFIXES:
-
-.PHONY: build
-build:
-
-###############################################################################
-
include $(PROJECT/)make/include/base.defs
include $(PROJECT/)make/include/contrib.defs
include $(PROJECT/)make/include/function.defs
diff --git a/make/include/main.rules b/make/include/main.rules
index b389022f3..1f996cdc5 100644
--- a/make/include/main.rules
+++ b/make/include/main.rules
@@ -1,3 +1,13 @@
+.DELETE_ON_ERROR:
+.SUFFIXES:
+
+###############################################################################
+
+## file-wide conditional to use xcode rules if xcode=1 method=terminal
+ifeq ($(FEATURE.xcode):$(BUILD.method),1:terminal)
+ include $(PROJECT/)macosx/module.xcode
+else
+
## only included using special report targets
ifneq (,$(REPORT))
include $(PROJECT/)make/include/report.defs
@@ -5,8 +15,10 @@ endif
###############################################################################
-.PHONY: clean xclean doc report
+.PHONY: build install clean xclean doc report
+build:
+install:
clean:
xclean: contrib.xclean clean
doc:
@@ -37,3 +49,5 @@ reconfigure:
## target to build all dependency dirs
$(sort $(dir $(BUILD.out))):
$(MKDIR.exe) -p $@
+
+endif ## xcode=1 method=terminal