-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (47 loc) · 1.56 KB
/
Makefile
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
#
# Frets on Fire Makefile
#
TOP=.
PYTHON=python
PLATFORM=$(shell uname)
include data/Makefile
all: dist
#
# Win32 binary & installer
#
ifneq "$(findstring Windows_NT, $(OS))" ""
PYTHON_LIBS=c:/python25/lib
MAKENSIS=/c/Program\ Files/NSIS/makeNSIS.exe
build: graphics translations killscores
@echo --- Compiling for win32
#$(PYTHON) setup.py sdist -o
$(PYTHON) setup.py py2exe
@echo --- Fixing PyOpenGL-ctypes
cp -Lr $(PYTHON_LIBS)/site-packages/PyOpenGL-3.0.0a5-py2.5.egg dist/win32/data
cp -Lr $(PYTHON_LIBS)/site-packages/setuptools-0.6c8-py2.5.egg dist/win32/data
@echo --- Fixing miscellaneous things
@unix2dos dist/win32/readme.txt
@unix2dos dist/win32/copying.txt
@unix2dos dist/win32/install.txt
@rm -f dist/win32/w9xpopen.exe
VERSION=$(shell cd src; python -c "import Version; print Version.version()")
dist: build
@echo --- Making installer for win32
mkdir -p dist/win32/installer
cp data/win32/installer/* dist/win32/installer
$(MAKENSIS) /DVERSION=$(VERSION)-win32 dist/win32/installer/FretsOnFire.nsi
endif
ifneq "$(findstring Darwin, $(PLATFORM))" ""
dist: graphics translations killscores
@echo --- Compiling for macosx
#$(PYTHON) setup.py sdist -o
$(PYTHON) setup.py py2app
@echo --- Fixing miscellaneous things
mv "dist/mac/Frets on Fire.app/Contents/MacOS/Frets on Fire" "dist/mac/Frets on Fire.app/Contents/MacOS/FretsOnFire.bin"
cp data/launcher-macosx.sh "dist/mac/Frets on Fire.app/Contents/MacOS/Frets on Fire"
endif
sdist: graphics translations killscores
$(PYTHON) setup.py sdist
clean:
@rm -rf dist build
.PHONY: dist installer sdist