File: Makefile

package info (click to toggle)
libwx-perl 1%3A0.9932-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,300 kB
  • sloc: cpp: 11,064; perl: 8,603; ansic: 711; makefile: 53
file content (37 lines) | stat: -rwxr-xr-x 992 bytes parent folder | download | duplicates (6)
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
#!/bin/make -f

BUILD=build
APP_PARTS=\
  $(BUILD)/wxPerl.app/Contents/Info.plist \
  $(BUILD)/wxPerl.app/Contents/MacOS/wxPerl \
  $(BUILD)/wxPerl.app/Contents/Resources/wxPerl.rsrc \
  $(BUILD)/wxPerl.app/Contents/PkgInfo

all: $(BUILD)/wxPerl.app

clean:
	rm -rf $(BUILD)

$(BUILD)/wxPerl.app: $(APP_PARTS)

$(BUILD)/wxPerl.app/Contents:
	mkdir -p $@

$(BUILD)/wxPerl.app/Contents/MacOS:
	mkdir -p $@

$(BUILD)/wxPerl.app/Contents/Resources:
	mkdir -p $@

$(BUILD)/wxPerl.app/Contents/PkgInfo: $(BUILD)/wxPerl.app/Contents
	echo -n "BNDL????" > $@

$(BUILD)/wxPerl.app/Contents/Info.plist: $(BUILD)/wxPerl.app/Contents
	cp Info.plist $@

$(BUILD)/wxPerl.app/Contents/MacOS/wxPerl: $(BUILD)/wxPerl.app/Contents/MacOS
	gcc -o $@ $(ARCH_FLAGS) main.c

$(BUILD)/wxPerl.app/Contents/Resources/wxPerl.rsrc: $(BUILD)/wxPerl.app/Contents/Resources
	$(RESTOOLDIR)/Rez -d __DARWIN__ -useDF -o $(BUILD)/wxPerl.rsrc $(ARCH_FLAGS) wxPerl.r
	$(RESTOOLDIR)/ResMerger -dstIs DF $(BUILD)/wxPerl.rsrc -o $@