OSDN Git Service

BuildSystem:
[handbrake-jp/handbrake-jp-git.git] / make / include / main.rules
1 .DELETE_ON_ERROR:
2 .SUFFIXES:
3
4 ###############################################################################
5
6 ## file-wide conditional to use xcode rules if xcode=1 method=terminal
7 ifeq ($(FEATURE.xcode):$(BUILD.method),1:terminal)
8     include $(PROJECT/)macosx/module.xcode
9 else
10
11 ## only included using special report targets
12 ifneq (,$(REPORT))
13     include $(PROJECT/)make/include/report.defs
14 endif
15
16 ###############################################################################
17
18 .PHONY: build install clean xclean doc report
19
20 build:
21 install:
22 clean:
23 xclean: contrib.xclean clean
24 doc:
25 report:: report.main report.modules
26
27 ## legacy
28 mrproper: xclean
29
30 ###############################################################################
31
32 include $(MODULES:%=$(PROJECT/)%/module.rules)
33 -include $(PROJECT/)make/variant/$(HOST.system).rules
34 -include $(PROJECT/)make/variant/$(HOST.system).$(BUILD.machine).rules
35
36 ###############################################################################
37
38 ## target which causes re-configure if project-root is svn update'd
39 $(BUILD/)GNUmakefile: $(wildcard $(PROJECT/).svn/entries)
40         $(PROJECT/)configure $(CONF.args)
41
42 ## target useful to force reconfigure; only helpful for build-system development
43 .PHONY: reconfigure
44 reconfigure:
45         $(PROJECT/)configure $(CONF.args)
46
47 ###############################################################################
48
49 ## target to build all dependency dirs
50 $(sort $(dir $(BUILD.out))):
51         $(MKDIR.exe) -p $@
52
53 endif ## xcode=1 method=terminal