Skip to content

Commit

Permalink
Add build dependencies to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Sep 5, 2012
1 parent 8c4d863 commit cbb68d1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ build
full_soundtrack.ogg
win32/*
win64/*
osx/love.app
redditors.txt
src/main.lua
venv
26 changes: 20 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: love osx clean contributors
.PHONY: love osx clean contributors win32 win64

current_version = $(shell python scripts/version.py current)
next_version = $(shell python scripts/version.py next)
Expand All @@ -10,16 +10,21 @@ love:
cd src && zip -r ../build/hawkthorne.love . -x ".*" \
-x ".DS_Store" -x "*/full_soundtrack.ogg"

osx: love
cp -r /Applications/love.app Journey\ to\ the\ Center\ of\ Hawkthorne.app
osx: love osx/love.app
cp -r osx/love.app Journey\ to\ the\ Center\ of\ Hawkthorne.app
cp build/hawkthorne.love Journey\ to\ the\ Center\ of\ Hawkthorne.app/Contents/Resources
cp osx/Hawkthorne.icns Journey\ to\ the\ Center\ of\ Hawkthorne.app/Contents/Resources/Love.icns
zip -r hawkthorne-osx Journey\ to\ the\ Center\ of\ Hawkthorne.app
mv hawkthorne-osx.zip build
rm -rf Journey\ to\ the\ Center\ of\ Hawkthorne.app

win: win32 win64
osx/love.app:
wget https://bitbucket.org/rude/love/downloads/love-0.8.0-macosx-ub.zip
unzip love-0.8.0-macosx-ub.zip
rm love-0.8.0-macosx-ub.zip
mv love.app osx

win: win32 win64

win32: love
rm -rf hawkthorne
Expand All @@ -29,6 +34,11 @@ win32: love
zip -r hawkthorne-win-x86 hawkthorne -x "*/love.exe"
mv hawkthorne-win-x86.zip build

win32/love.exe:
wget https://github.com/downloads/kyleconroy/hawkthorne-journey/windows-build-files.zip
unzip windows-build-files.zip
rm windows-build-files.zip

win64: love
rm -rf hawkthorne
rm -f hawkthorne-win-x64.zip
Expand All @@ -53,8 +63,12 @@ tag:

deploy: tag upload post

post:
python scripts/post.py $(previous_version) $(current_version)
post: venv
venv/bin/python scripts/post.py $(previous_version) $(current_version)

venv:
virtualenv --python=python2.7 venv
venv/bin/pip install -r requirements.txt

contributors:
python scripts/clean.py > CONTRIBUTORS
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tweepy
requests
jinja2

0 comments on commit cbb68d1

Please sign in to comment.