summaryrefslogtreecommitdiffstats
path: root/make/include/main.rules
blob: 6c3cbb05bbeda669b4be387f2e646795bbb16cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.DELETE_ON_ERROR:
.SUFFIXES:

###############################################################################

## shunt make through xcodebuild when FEATURE.xcode=1 and XCODE.driver is applicable
ifeq (1:shunt,$(FEATURE.xcode):$(if $(filter bootstrap terminal,$(XCODE.driver)),shunt))
    include $(SRC/)macosx/module.xcodebuild
else

## only included using special report targets
ifneq (,$(REPORT))
    include $(SRC/)make/include/report.defs
endif

###############################################################################

.PHONY: build clean archive install uninstall xclean doc report

build:
clean:
archive:
install:
install-strip:
uninstall:
xclean: contrib.xclean clean
doc:
report:: report.main report.modules

## legacy
mrproper: xclean

###############################################################################

include $(SRC/)make/include/base.rules

include $(MODULES:%=$(SRC/)%/module.rules)
-include $(SRC/)make/variant/$(BUILD.system).rules
-include $(SRC/)make/variant/$(BUILD.system).$(BUILD.machine).rules

###############################################################################

## force reconfigure
.PHONY: reconfigure
reconfigure:
	$(SRC/)configure --force $(CONF.args)

###############################################################################

## build all dependency dirs
$(sort $(dir $(BUILD.out))):
	$(MKDIR.exe) -p $@

endif ## FEATURE.xcode XCODE.driver