OSDN Git Service

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