summaryrefslogtreecommitdiffstats
path: root/macosx/module.rules
blob: 7d4d368fc71788282a9509a6744f20d8bc89080d (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
$(eval $(call import.MODULE.rules,MACOSX))

macosx.build: $(MACOSX.m4.out)
macosx.build: $(MACOSX.osl.filelist)

macosx.clean:
	$(RM.exe) -f $(MACOSX.m4.out)
	$(RM.exe) -f $(MACOSX.osl.filelist)

macosx.xclean:
	$(RM.exe) -rf $(MACOSX.build/)
	$(RM.exe) -rf $(MACOSX.xroot/)

test.clean:
	$(RM.exe) -f $(MACOSX.xroot/)HandBrakeCLI
	$(RM.exe) -rf $(MACOSX.xroot/)HandBrakeCLI.dSYM
	$(RM.exe) -rf $(MACOSX.xroot/)HandBrakeCLI.build

test.xclean: test.clean

$(MACOSX.m4.out): $(BUILD/)project/handbrake.m4
$(MACOSX.m4.out): | $(dir $(MACOSX.m4.out))
$(MACOSX.m4.out): $(MACOSX.build/)%: $(MACOSX.src/)%.m4
	$(M4.exe) -Iproject $< > $@

$(MACOSX.osl.filelist): | $(dir $(MACOSX.osl.filelist))
$(MACOSX.osl.filelist): $(BUILD/)GNUmakefile
	@echo "creating $@"
	@> $@
	$(foreach i,$(foreach m,$(MODULES.NAMES),$($m.OSL.files)),$(call fn.PRINTLN,@echo $i >> $@))

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

clean: macosx.clean
build: macosx.build