-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
37 lines (27 loc) · 1.01 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
SUBDIRS = src map graphics sound
man_MANS = freedroid.6
EXTRA_DIST = $(man_MANS) mac-osx
## Win32 specific stuff follows here
win_txts = COPYING AUTHORS README Releasetext freedroid-man
win_dir = freedroid-$(VERSION)-win32
dist-win32: src/freedroid.exe
mkdir -p $(win_dir)
cp -r graphics map sound $(win_dir)
cp src/freedroid.exe $(win_dir)
nroff -man freedroid.6 > freedroid-man
for i in $(win_txts); do \
cp $$i $(win_dir)/$$i.txt; \
emacs -batch -q -l unix2dos.el --visit=$(win_dir)/$$i.txt -f unix2dos;\
done
zip -r $(win_dir).zip $(win_dir)
## MacOS X stuff follows here (experimental and unfinished)
bundle_contents = FreeDroid.app/Contents
FreeDroid_bundle: src/freedroid
mkdir -p $(bundle_contents)/MacOS
mkdir -p $(bundle_contents)/Resources
echo "FreeDroid Classic " > $(bundle_contents)/PkgInfo
$(INSTALL_PROGRAM) $< $(bundle_contents)/MacOS/
android-data:
mkdir -p AndroidData
zip -r AndroidData/data-1.2.2.zip graphics/ sound/*.wav sound/*.ogg map/
cp graphics/title.jpg AndroidData/logo.jpg