OSDN Git Service

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