1include cpprules.in
2
3CPP_FILES_FLAGS = \
4	-DAPPLE_APPLICATION_NAME="$(APPLE_APPLICATION_NAME)" \
5	-DBUNDLE_ID_PREFIX="$(BUNDLE_ID_PREFIX)" \
6	-DBUNDLE_VERSION="$(BUNDLE_VERSION)" \
7	-DBUNDLE_VERSION_STRING="$(BUNDLE_VERSION_STRING)"
8
9if XQUARTZ_SPARKLE
10CPP_FILES_FLAGS += -DXQUARTZ_SPARKLE -DXQUARTZ_SPARKLE_FEED_URL="$(XQUARTZ_SPARKLE_FEED_URL)"
11endif
12
13install-data-hook:
14	$(srcdir)/mk_bundke.sh $(srcdir) $(builddir) $(DESTDIR)$(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app install
15
16uninstall-hook:
17	$(RM) -rf $(DESTDIR)$(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app/Contents/Resources
18	$(RM) -rf $(DESTDIR)$(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app/Contents/Info.plist
19	$(RM) -rf $(DESTDIR)$(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app/Contents/PkgInfo
20
21noinst_PRE = Info.plist.cpp
22noinst_DATA = $(noinst_PRE:plist.cpp=plist)
23
24CLEANFILES = $(noinst_DATA)
25
26EXTRA_DIST = \
27	chown-bundle.sh \
28	mk_bundke.sh \
29	X11.sh \
30	Info.plist.cpp \
31	PkgInfo \
32	$(resource_DATA) \
33	Resources/ar.lproj/Localizable.strings \
34	Resources/ar.lproj/locversion.plist \
35	Resources/ar.lproj/main.nib/designable.nib \
36	Resources/ar.lproj/main.nib/keyedobjects.nib \
37	Resources/ar.lproj/main.nib/keyedobjects-110000.nib \
38	Resources/ca.lproj/Localizable.strings \
39	Resources/ca.lproj/locversion.plist \
40	Resources/ca.lproj/main.nib/designable.nib \
41	Resources/ca.lproj/main.nib/keyedobjects.nib \
42	Resources/ca.lproj/main.nib/keyedobjects-110000.nib \
43	Resources/cs.lproj/Localizable.strings \
44	Resources/cs.lproj/locversion.plist \
45	Resources/cs.lproj/main.nib/designable.nib \
46	Resources/cs.lproj/main.nib/keyedobjects.nib \
47	Resources/cs.lproj/main.nib/keyedobjects-110000.nib \
48	Resources/da.lproj/Localizable.strings \
49	Resources/da.lproj/locversion.plist \
50	Resources/da.lproj/main.nib/designable.nib \
51	Resources/da.lproj/main.nib/keyedobjects.nib \
52	Resources/da.lproj/main.nib/keyedobjects-110000.nib \
53	Resources/Dutch.lproj/Localizable.strings \
54	Resources/Dutch.lproj/locversion.plist \
55	Resources/Dutch.lproj/main.nib/designable.nib \
56	Resources/Dutch.lproj/main.nib/keyedobjects.nib \
57	Resources/Dutch.lproj/main.nib/keyedobjects-110000.nib \
58	Resources/el.lproj/Localizable.strings \
59	Resources/el.lproj/locversion.plist \
60	Resources/el.lproj/main.nib/designable.nib \
61	Resources/el.lproj/main.nib/keyedobjects.nib \
62	Resources/el.lproj/main.nib/keyedobjects-110000.nib \
63	Resources/English.lproj/Localizable.strings \
64	Resources/English.lproj/locversion.plist \
65	Resources/English.lproj/main.nib/designable.nib \
66	Resources/English.lproj/main.nib/keyedobjects.nib \
67	Resources/English.lproj/main.nib/keyedobjects-110000.nib \
68	Resources/fi.lproj/Localizable.strings \
69	Resources/fi.lproj/locversion.plist \
70	Resources/fi.lproj/main.nib/designable.nib \
71	Resources/fi.lproj/main.nib/keyedobjects.nib \
72	Resources/fi.lproj/main.nib/keyedobjects-110000.nib \
73	Resources/French.lproj/Localizable.strings \
74	Resources/French.lproj/locversion.plist \
75	Resources/French.lproj/main.nib/designable.nib \
76	Resources/French.lproj/main.nib/keyedobjects.nib \
77	Resources/French.lproj/main.nib/keyedobjects-110000.nib \
78	Resources/German.lproj/Localizable.strings \
79	Resources/German.lproj/locversion.plist \
80	Resources/German.lproj/main.nib/designable.nib \
81	Resources/German.lproj/main.nib/keyedobjects.nib \
82	Resources/German.lproj/main.nib/keyedobjects-110000.nib \
83	Resources/he.lproj/Localizable.strings \
84	Resources/he.lproj/locversion.plist \
85	Resources/he.lproj/main.nib/designable.nib \
86	Resources/he.lproj/main.nib/keyedobjects.nib \
87	Resources/he.lproj/main.nib/keyedobjects-110000.nib \
88	Resources/hr.lproj/Localizable.strings \
89	Resources/hr.lproj/locversion.plist \
90	Resources/hr.lproj/main.nib/designable.nib \
91	Resources/hr.lproj/main.nib/keyedobjects.nib \
92	Resources/hr.lproj/main.nib/keyedobjects-110000.nib \
93	Resources/hu.lproj/Localizable.strings \
94	Resources/hu.lproj/locversion.plist \
95	Resources/hu.lproj/main.nib/designable.nib \
96	Resources/hu.lproj/main.nib/keyedobjects.nib \
97	Resources/hu.lproj/main.nib/keyedobjects-110000.nib \
98	Resources/Italian.lproj/Localizable.strings \
99	Resources/Italian.lproj/locversion.plist \
100	Resources/Italian.lproj/main.nib/designable.nib \
101	Resources/Italian.lproj/main.nib/keyedobjects.nib \
102	Resources/Italian.lproj/main.nib/keyedobjects-110000.nib \
103	Resources/Japanese.lproj/Localizable.strings \
104	Resources/Japanese.lproj/locversion.plist \
105	Resources/Japanese.lproj/main.nib/designable.nib \
106	Resources/Japanese.lproj/main.nib/keyedobjects.nib \
107	Resources/Japanese.lproj/main.nib/keyedobjects-110000.nib \
108	Resources/ko.lproj/Localizable.strings \
109	Resources/ko.lproj/locversion.plist \
110	Resources/ko.lproj/main.nib/designable.nib \
111	Resources/ko.lproj/main.nib/keyedobjects.nib \
112	Resources/ko.lproj/main.nib/keyedobjects-110000.nib \
113	Resources/no.lproj/Localizable.strings \
114	Resources/no.lproj/locversion.plist \
115	Resources/no.lproj/main.nib/designable.nib \
116	Resources/no.lproj/main.nib/keyedobjects.nib \
117	Resources/no.lproj/main.nib/keyedobjects-110000.nib \
118	Resources/pl.lproj/Localizable.strings \
119	Resources/pl.lproj/locversion.plist \
120	Resources/pl.lproj/main.nib/designable.nib \
121	Resources/pl.lproj/main.nib/keyedobjects.nib \
122	Resources/pl.lproj/main.nib/keyedobjects-110000.nib \
123	Resources/pt.lproj/Localizable.strings \
124	Resources/pt.lproj/locversion.plist \
125	Resources/pt.lproj/main.nib/designable.nib \
126	Resources/pt.lproj/main.nib/keyedobjects.nib \
127	Resources/pt.lproj/main.nib/keyedobjects-110000.nib \
128	Resources/pt_PT.lproj/Localizable.strings \
129	Resources/pt_PT.lproj/locversion.plist \
130	Resources/pt_PT.lproj/main.nib/designable.nib \
131	Resources/pt_PT.lproj/main.nib/keyedobjects.nib \
132	Resources/pt_PT.lproj/main.nib/keyedobjects-110000.nib \
133	Resources/ro.lproj/Localizable.strings \
134	Resources/ro.lproj/locversion.plist \
135	Resources/ro.lproj/main.nib/designable.nib \
136	Resources/ro.lproj/main.nib/keyedobjects.nib \
137	Resources/ro.lproj/main.nib/keyedobjects-110000.nib \
138	Resources/ru.lproj/Localizable.strings \
139	Resources/ru.lproj/locversion.plist \
140	Resources/ru.lproj/main.nib/designable.nib \
141	Resources/ru.lproj/main.nib/keyedobjects.nib \
142	Resources/ru.lproj/main.nib/keyedobjects-110000.nib \
143	Resources/sk.lproj/Localizable.strings \
144	Resources/sk.lproj/locversion.plist \
145	Resources/sk.lproj/main.nib/designable.nib \
146	Resources/sk.lproj/main.nib/keyedobjects.nib \
147	Resources/sk.lproj/main.nib/keyedobjects-110000.nib \
148	Resources/Spanish.lproj/Localizable.strings \
149	Resources/Spanish.lproj/locversion.plist \
150	Resources/Spanish.lproj/main.nib/designable.nib \
151	Resources/Spanish.lproj/main.nib/keyedobjects.nib \
152	Resources/Spanish.lproj/main.nib/keyedobjects-110000.nib \
153	Resources/sv.lproj/Localizable.strings \
154	Resources/sv.lproj/locversion.plist \
155	Resources/sv.lproj/main.nib/designable.nib \
156	Resources/sv.lproj/main.nib/keyedobjects.nib \
157	Resources/sv.lproj/main.nib/keyedobjects-110000.nib \
158	Resources/th.lproj/Localizable.strings \
159	Resources/th.lproj/locversion.plist \
160	Resources/th.lproj/main.nib/designable.nib \
161	Resources/th.lproj/main.nib/keyedobjects.nib \
162	Resources/th.lproj/main.nib/keyedobjects-110000.nib \
163	Resources/tr.lproj/Localizable.strings \
164	Resources/tr.lproj/locversion.plist \
165	Resources/tr.lproj/main.nib/designable.nib \
166	Resources/tr.lproj/main.nib/keyedobjects.nib \
167	Resources/tr.lproj/main.nib/keyedobjects-110000.nib \
168	Resources/uk.lproj/Localizable.strings \
169	Resources/uk.lproj/locversion.plist \
170	Resources/uk.lproj/main.nib/designable.nib \
171	Resources/uk.lproj/main.nib/keyedobjects.nib \
172	Resources/uk.lproj/main.nib/keyedobjects-110000.nib \
173	Resources/X11.icns \
174	Resources/zh_CN.lproj/Localizable.strings \
175	Resources/zh_CN.lproj/locversion.plist \
176	Resources/zh_CN.lproj/main.nib/designable.nib \
177	Resources/zh_CN.lproj/main.nib/keyedobjects.nib \
178	Resources/zh_CN.lproj/main.nib/keyedobjects-110000.nib \
179	Resources/zh_TW.lproj/Localizable.strings \
180	Resources/zh_TW.lproj/locversion.plist \
181	Resources/zh_TW.lproj/main.nib/designable.nib \
182	Resources/zh_TW.lproj/main.nib/keyedobjects.nib \
183	Resources/zh_TW.lproj/main.nib/keyedobjects-110000.nib
184