-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
69 lines (63 loc) · 2.42 KB
/
Makefile.am
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
SUBDIRS = src doc
pkgdata_DATA = AUTHORS README INSTALL
if IPHONE_OS
distclean-local:
@rm -rf src/zsrelay/zsrelay_ || true
@rm -rf src/zsrelay/zsrelay || true
@rm -rf src/zscmd/zscmd_ || true
@rm -rf src/zscmd/zscmd || true
@rm -rf src/prefplug/ZSRelaySettings_ || true
@rm -rf src/prefplug/ZSRelaySettings || true
# @rm -rf src/prefplug/Demo_ || true
# @rm -rf src/prefplug/Demo || true
@rm -rf src/*/*.app
@rm -rf src/*/*.bundle
# @rm -rf src/prefplug/plugins
fakesign: distclean-local all
if IPHONE_OS_RELEASE2
@if [ ! -x "$(SIGNHELPER)" ]; then \
echo "Please call make with a valid SIGNHELPER (make SIGNHELPER=/path/to/helper)"; \
exit 1; \
fi
$(SIGNHELPER) src/zsrelay/zsrelay
$(SIGNHELPER) src/zscmd/zscmd
$(SIGNHELPER) src/prefplug/ZSRelaySettings
# $(SIGNHELPER) src/prefplug/Demo
endif
app-bundle: fakesign
@mkdir -p src/zsrelay/ZSRelay.app
@cp $(srcdir)/misc/Info.plist src/zsrelay/ZSRelay.app/Info.plist
@cp src/zsrelay/zsrelay src/zsrelay/ZSRelay.app/zsrelay
pref-bundle: app-bundle
@echo "Creating preference bundle..."
@mkdir -p src/prefplug/ZSRelaySettings.bundle
@cp -r $(srcdir)/misc/Prefs/* src/prefplug/ZSRelaySettings.bundle/
@mv -f src/prefplug/ZSrelaySettings.bundle/ZSRelaySettings.plist src/prefplug/
@rm -r src/prefplug/ZSRelaySettings.bundle/plugins
@cp src/prefplug/ZSRelaySettings src/prefplug/ZSRelaySettings.bundle/
# @echo "Creating plugin 'Demo.bundle'..."
# @mkdir -p src/prefplug/plugins/Demo.bundle
# @cp -r $(srcdir)/misc/Prefs/plugins/Demo/* src/prefplug/plugins/Demo.bundle/
# @cp src/prefplug/Demo src/prefplug/plugins/Demo.bundle/
dist-deb: pref-bundle
@cp -f $(srcdir)/debian/{pre,post}{inst,rm} debian/ || true
@cp -f $(srcdir)/debian/org.bitspin.zsrelay.dirs debian/ || false
@cp -f $(srcdir)/debian/compat debian/ || false
@mkdir -p doc
@mkdir -p tools
@mkdir -p misc
@find $(srcdir)/doc -not -name '*.in' \
-not -name '*.am' \
-not -name 'Makefile' \
-exec cp -l '{}' doc/ ';'
@find $(srcdir)/tools -not -name '*.in' \
-not -name '*.am' \
-not -name 'Makefile' -exec cp -l '{}' tools/ ';'
@find $(srcdir)/misc -not -name '*.in' \
-not -name '*.am' \
-not -name 'Makefile' -exec cp -l '{}' misc/ ';'
@chmod +x debian/rules
@chmod +x tools/*
#@SRCDIR=srcdir dpkg-buildpackage -nc -uc -us -rfakeroot -d
@SRCDIR=srcdir dpkg-buildpackage -nc -uc -us -rsudo -b -d
endif