1501e3f89c
git-svn-id: http://comictagger.googlecode.com/svn/trunk@62 6c5673fe-1810-88d6-992b-cd32ca31540c
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# This Makefile expects that certain GNU utils are available:
|
|
# rm, cp, grep, cut, cat
|
|
|
|
TAGGER_BASE:= c:\Users\tony\Dropbox\tagger\comictagger
|
|
DIST_DIR := $(TAGGER_BASE)\windows\dist
|
|
NSIS_CMD := "C:\Program Files (x86)\NSIS\makensis.exe"
|
|
VERSION := $(shell grep version "$(TAGGER_BASE)\ctversion.py" | cut -d= -f2)
|
|
|
|
all: clean dist package
|
|
|
|
dist:
|
|
cd "$(TAGGER_BASE)" &
|
|
"C:\Python27\Scripts\cxfreeze.bat" $(TAGGER_BASE)\tagger.py --icon nsis\app.ico
|
|
#--base-name=Win32GUI
|
|
cp -R C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats $(DIST_DIR)
|
|
cp "$(TAGGER_BASE)\UnRAR2\UnRARDLL\unrar.dll" $(DIST_DIR)
|
|
cp "$(TAGGER_BASE)\*.ui" $(DIST_DIR)
|
|
cp -r "$(TAGGER_BASE)\graphics" $(DIST_DIR)
|
|
|
|
rm "$(DIST_DIR)\QtWebKit4.dll"
|
|
rm "$(DIST_DIR)\PyQt4.QtWebKit.pyd"
|
|
|
|
package:
|
|
echo !define RELEASE_STR $(VERSION) > $(TAGGER_BASE)\windows\nsis\release.nsh
|
|
$(NSIS_CMD) "$(TAGGER_BASE)\windows\nsis\comictagger.nsi"
|
|
mv "$(TAGGER_BASE)\windows\nsis\ComicTagger*.exe" "$(TAGGER_BASE)\windows"
|
|
|
|
clean:
|
|
-rm -rf dist
|
|
-rm -f "*~" *.pyc *.pyo
|
|
-rm -f "$(TAGGER_BASE)\windows\*.exe"
|
|
|
|
test:
|
|
echo !define RELEASE_STR $(VERSION) > test.nsh
|
|
|