2018-01-14 07:41:27 -08:00
|
|
|
TAGGER_BASE ?= .
|
2013-02-06 23:04:23 -08:00
|
|
|
TAGGER_SRC := $(TAGGER_BASE)/comictaggerlib
|
2013-02-06 14:29:52 -08:00
|
|
|
VERSION_STR := $(shell grep version $(TAGGER_SRC)/ctversion.py| cut -d= -f2 | sed 's/\"//g')
|
2012-11-29 21:30:37 -08:00
|
|
|
all: clean
|
|
|
|
|
|
|
|
clean:
|
2013-02-06 23:04:23 -08:00
|
|
|
rm -rf *~ *.pyc *.pyo
|
2013-02-14 17:05:35 -08:00
|
|
|
rm -rf scripts/*.pyc
|
2013-02-07 21:38:14 -08:00
|
|
|
cd comictaggerlib; rm -f *~ *.pyc *.pyo
|
|
|
|
rm -rf dist MANIFEST
|
2013-02-07 13:34:00 -08:00
|
|
|
rm -rf *.deb
|
2013-02-06 23:04:23 -08:00
|
|
|
rm -rf logdict*.log
|
2018-01-14 07:41:27 -08:00
|
|
|
$(MAKE) -C mac clean
|
2013-02-07 21:38:14 -08:00
|
|
|
rm -rf build
|
2018-01-14 07:41:27 -08:00
|
|
|
$(MAKE) -C unrar clean
|
2013-01-24 22:13:33 -08:00
|
|
|
|
2013-02-06 21:21:07 -08:00
|
|
|
pydist:
|
2013-02-08 14:14:18 -08:00
|
|
|
mkdir -p release
|
2013-02-07 17:14:04 -08:00
|
|
|
rm -f release/*.zip
|
|
|
|
python setup.py sdist --formats=zip #,gztar
|
|
|
|
mv dist/comictagger-$(VERSION_STR).zip release
|
2013-02-07 21:38:14 -08:00
|
|
|
|
2013-02-07 17:14:04 -08:00
|
|
|
upload:
|
2014-04-18 08:42:05 -07:00
|
|
|
python setup.py register
|
2014-03-23 15:28:03 -07:00
|
|
|
python setup.py sdist --formats=zip upload
|
2013-02-06 11:13:07 -08:00
|
|
|
|
2018-01-14 07:41:27 -08:00
|
|
|
.PHONY: unrar dist
|
|
|
|
unrar:
|
|
|
|
$(MAKE) -C unrar lib
|
|
|
|
|
|
|
|
dist: unrar
|
|
|
|
pyinstaller comictagger.spec
|