forked from ReinhardPrix/FreedroidClassic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
34 lines (25 loc) · 929 Bytes
/
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
SUBDIRS = src map graphics sound
man_MANS = freedroid.6
EXTRA_DIST = $(man_MANS) mac-osx
dist-hook:
rm -rf `find $(distdir) -name CVS`
## 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/