summaryrefslogtreecommitdiffstats
path: root/macosx/module.rules
blob: 20011c03dff6666a9a32efe935f685f3218c0376 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$(eval $(call import.MODULE.rules,MACOSX))

build: macosx.build
install: macosx.install
uninstall: macosx.uninstall
clean: macosx.clean
xclean: macosx.xclean

########################################
# sync with ../test/module.rules       #
########################################
test.install-strip: | $(dir $(TEST.install.exe))
	$(CP.exe) $(TEST.exe) $(TEST.install.exe)
	$(STRIP.exe) $(TEST.install.exe)

test.install: | $(dir $(TEST.install.exe))
	$(CP.exe) $(TEST.exe) $(TEST.install.exe)

test.uninstall:
	$(RM.exe) -f $(TEST.install.exe)

test.clean:
	$(RM.exe) -f $(TEST.out)

test.xclean: test.clean
########################################

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

macosx.install: test.install
macosx.uninstall: test.uninstall

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/)

$(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 >> $@))