-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
247 lines (210 loc) · 6.48 KB
/
Makefile
File metadata and controls
247 lines (210 loc) · 6.48 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
version := $(strip $(shell cat VERSION.FS))
build_dir := "."
dist_name = fs-uae-launcher-$(version)
dist_dir := $(build_dir)/$(dist_name)
DESTDIR :=
prefix := /usr/local
ifeq ($(wildcard amitools),)
amitools_dir := "."
else
amitools_dir := "."
endif
ifeq ($(wildcard arcade),)
arcade_dir := "."
else
arcade_dir := "."
endif
ifeq ($(wildcard fsbc),)
fsbc_dir := "."
else
fsbc_dir := "."
endif
ifeq ($(wildcard fsboot),)
fsboot_dir := "."
else
fsboot_dir := "."
endif
ifeq ($(wildcard fsgs),)
fsgs_dir := "."
else
fsgs_dir := "."
endif
ifeq ($(wildcard fspy),)
fspy_dir := "."
else
fspy_dir := "."
endif
ifeq ($(wildcard fstd),)
fstd_dir := "."
else
fstd_dir := "."
endif
ifeq ($(wildcard fsui),)
fsui_dir := "."
else
fsui_dir := "."
endif
ifeq ($(wildcard launcher),)
launcher_dir := "."
else
launcher_dir := "."
endif
ifeq ($(wildcard oyoyo),)
oyoyo_dir := "."
else
oyoyo_dir := "."
endif
ifeq ($(wildcard workspace),)
workspace_dir := "."
else
workspace_dir := "."
endif
all: mo
share/locale/%/LC_MESSAGES/fs-uae-launcher.mo: po/%.po
mkdir -p share/locale/$*/LC_MESSAGES
msgfmt --verbose $< -o $@
catalogs = \
share/locale/cs/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/da/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/de/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/el/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/eo/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/es/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/fi/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/fr/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/hu/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/it/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/nb/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/nl/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/pl/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/pt/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/pt_BR/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/ru/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/sr/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/sv/LC_MESSAGES/fs-uae-launcher.mo \
share/locale/tr/LC_MESSAGES/fs-uae-launcher.mo
mo: $(catalogs)
install-program:
ifeq ($(DESTDIR),)
python3 setup.py install --install-lib=$(prefix)/share/fs-uae-launcher --install-scripts=$(prefix)/share/fs-uae-launcher
install -d $(DESTDIR)$(prefix)/bin
rm -f $(DESTDIR)$(prefix)/bin/fs-uae-launcher
ln -s ../share/fs-uae-launcher/fs-uae-launcher $(DESTDIR)$(prefix)/bin/fs-uae-launcher
else
python3 setup.py install --root=$(DESTDIR) --install-lib=$(prefix)/share/fs-uae-launcher --install-scripts=$(prefix)/share/fs-uae-launcher
install -d $(DESTDIR)$(prefix)/bin
rm -f $(DESTDIR)$(prefix)/bin/fs-uae-launcher
ln -s ../share/fs-uae-launcher/fs-uae-launcher $(DESTDIR)$(prefix)/bin/fs-uae-launcher
endif
install-data: mo
mkdir -p $(DESTDIR)$(prefix)/share
cp -a share/* $(DESTDIR)$(prefix)/share
mkdir -p $(DESTDIR)$(prefix)/share/doc/fs-uae-launcher
cp -a README COPYING $(DESTDIR)$(prefix)/share/doc/fs-uae-launcher
install: install-data install-program
dist_dir := fs-uae-launcher-$(version)
distdir:
rm -Rf $(dist_dir)/*
mkdir -p $(dist_dir)
cp -a $(amitools_dir)/amitools $(dist_dir)/
cp -a $(arcade_dir)/arcade $(dist_dir)/
cp -a $(fsbc_dir)/fsbc $(dist_dir)/
cp -a $(fsboot_dir)/fsboot $(dist_dir)/
cp -a $(fsgs_dir)/fsgs $(dist_dir)/
cp -a $(fspy_dir)/fspy $(dist_dir)/
cp -a $(fstd_dir)/fstd $(dist_dir)/
cp -a $(fsui_dir)/fsui $(dist_dir)/
cp -a $(launcher_dir)/launcher $(dist_dir)/
cp -a $(oyoyo_dir)/oyoyo $(dist_dir)/
cp -a $(workspace_dir)/workspace $(dist_dir)/
cp -a share $(dist_dir)/
rm -f $(dist_dir)/share/fs-uae-launcher/resources/fsgs/res/input/Makefile
mkdir $(dist_dir)/po/
find $(dist_dir) -name "*.mo" -delete
find $(dist_dir) -name "*.pyc" -delete
find $(dist_dir) -name "*.pyo" -delete
find $(dist_dir) -name __pycache__ -delete
cp COPYING $(dist_dir)/
cp ChangeLog $(dist_dir)/
cp INSTALL $(dist_dir)/
cp Makefile $(dist_dir)/
cp README $(dist_dir)/
cp VERSION.FS $(dist_dir)/
mkdir -p $(dist_dir)/debian
cp debian/changelog $(dist_dir)/debian
cp debian/compat $(dist_dir)/debian
cp debian/control $(dist_dir)/debian
cp debian/copyright $(dist_dir)/debian
cp debian/links $(dist_dir)/debian
cp debian/rules $(dist_dir)/debian
mkdir -p $(dist_dir)/debian/source
cp debian/source/format $(dist_dir)/debian/source
cp extra_imports.py $(dist_dir)/
cp fs-uae-launcher $(dist_dir)/
cp fs-uae-launcher.spec $(dist_dir)/
mkdir -p $(dist_dir)/icon
cp icon/fs-uae-launcher.icns $(dist_dir)/icon
cp icon/fs-uae-launcher.ico $(dist_dir)/icon
cp po-update.py $(dist_dir)/
mkdir -p $(dist_dir)/po
cp po/cs.po $(dist_dir)/po
cp po/da.po $(dist_dir)/po
cp po/de.po $(dist_dir)/po
cp po/el.po $(dist_dir)/po
cp po/eo.po $(dist_dir)/po
cp po/es.po $(dist_dir)/po
cp po/fi.po $(dist_dir)/po
cp po/fr.po $(dist_dir)/po
cp po/hu.po $(dist_dir)/po
cp po/it.po $(dist_dir)/po
cp po/nb.po $(dist_dir)/po
cp po/nl.po $(dist_dir)/po
cp po/pl.po $(dist_dir)/po
cp po/pt.po $(dist_dir)/po
cp po/pt_BR.po $(dist_dir)/po
cp po/ru.po $(dist_dir)/po
cp po/sr.po $(dist_dir)/po
cp po/sv.po $(dist_dir)/po
cp po/tr.po $(dist_dir)/po
cp setup.py $(dist_dir)/
cp update-version $(dist_dir)/
cd $(dist_dir) && ./update-version setup.py --strict
cd $(dist_dir) && ./update-version debian/changelog --deb
cd $(dist_dir) && ./update-version dist/macos/Info.plist --strict
cd $(dist_dir) && ./update-version launcher/version.py
cd $(dist_dir) && ./update-version fs-uae-launcher
cd $(dist_dir) && ./update-version fs-uae-launcher.spec --rpm
dist: distdir
find $(dist_dir) -exec touch \{\} \;
cd "$(build_dir)" && tar cfvz $(dist_name).tar.gz $(dist_name)
dist-xz: distdir
find $(dist_dir) -exec touch \{\} \;
cd "$(build_dir)" && tar cfJv $(dist_name).tar.xz $(dist_name)
windows-dist: distdir
cd $(dist_dir)/dist/windows && make
mv $(dist_dir)/fs-uae-launcher_*windows* .
rm -Rf $(dist_dir)
macos-dist: distdir
cd $(dist_dir)/dist/macos && make
mv $(dist_dir)/fs-uae-launcher_*macos* .
rm -Rf $(dist_dir)
clean-dist:
rm -Rf fs-uae-launcher-* fs-uae-launcher_*
rm -Rf debian/fs-uae-launcher*
clean:
rm -Rf build
find share -name "*.mo" -delete
find . -name "*.pyc" -delete
find . -name "*.pyo" -delete
find . -name __pycache__ -delete
distclean: clean clean-dist
rm -f Makefile
rm -f setup.py
bindist: distdir
cd $(dist_dir)/dist/linux && fs-sdk-linux-x86-64 make
mv $(dist_dir)/fs-uae-launcher_*linux* .
rm -Rf $(dist_dir)
bindist-x86: distdir
cd $(dist_dir)/dist/linux && fs-sdk-linux-x86 make
mv $(dist_dir)/fs-uae-launcher_*linux* .
rm -Rf $(dist_dir)