a7288a94cc
Multiplatform pyinstaller dist (#98)
32 lines
693 B
Makefile
32 lines
693 B
Makefile
TAGGER_BASE ?= .
|
|
TAGGER_SRC := $(TAGGER_BASE)/comictaggerlib
|
|
VERSION_STR := $(shell grep version $(TAGGER_SRC)/ctversion.py| cut -d= -f2 | sed 's/\"//g')
|
|
all: clean
|
|
|
|
clean:
|
|
rm -rf *~ *.pyc *.pyo
|
|
rm -rf scripts/*.pyc
|
|
cd comictaggerlib; rm -f *~ *.pyc *.pyo
|
|
rm -rf dist MANIFEST
|
|
rm -rf *.deb
|
|
rm -rf logdict*.log
|
|
$(MAKE) -C mac clean
|
|
rm -rf build
|
|
$(MAKE) -C unrar clean
|
|
|
|
pydist:
|
|
mkdir -p release
|
|
rm -f release/*.zip
|
|
python setup.py sdist --formats=zip #,gztar
|
|
mv dist/comictagger-$(VERSION_STR).zip release
|
|
|
|
upload:
|
|
python setup.py register
|
|
python setup.py sdist --formats=zip upload
|
|
|
|
.PHONY: unrar dist
|
|
unrar:
|
|
$(MAKE) -C unrar lib
|
|
|
|
dist: unrar
|
|
pyinstaller comictagger.spec
|