OSDN Git Service

This patch adds mingw32 cross-compilation support to HandBrake trunk to
[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 $(SRC/)macosx/module.xcode
9 else
10
11 ## only included using special report targets
12 ifneq (,$(REPORT))
13     include $(SRC/)make/include/report.defs
14 endif
15
16 ###############################################################################
17
18 .PHONY: build clean install uninstall xclean doc report
19
20 build:
21 clean:
22 install:
23 uninstall:
24 xclean: contrib.xclean clean
25 doc:
26 report:: report.main report.modules
27
28 ## legacy
29 mrproper: xclean
30
31 ###############################################################################
32
33 include $(SRC/)make/include/base.rules
34
35 include $(MODULES:%=$(SRC/)%/module.rules)
36 -include $(SRC/)make/variant/$(BUILD.system).rules
37 -include $(SRC/)make/variant/$(BUILD.system).$(BUILD.machine).rules
38
39 ###############################################################################
40
41 ## target which causes re-configure if project-root is svn update'd
42 $(BUILD/)GNUmakefile: $(wildcard $(SRC/).svn/entries)
43         $(SRC/)configure --force $(CONF.args)
44
45 ## target useful to force reconfigure; only helpful for build-system development
46 .PHONY: reconfigure
47 reconfigure:
48         $(SRC/)configure --force $(CONF.args)
49
50 ###############################################################################
51
52 ## target to build all dependency dirs
53 $(sort $(dir $(BUILD.out))):
54         $(MKDIR.exe) -p $@
55
56 endif ## xcode=1 method=terminal