2016-04-03 19:28:23 +03:00
|
|
|
# This file is licensed under the General Public License version 3 or
|
|
|
|
# later. See the LICENSE.txt file.
|
|
|
|
# @author Bernhard Posselt <dev@bernhard-posselt.com>
|
|
|
|
# @copyright Bernhard Posselt 2016
|
2016-04-03 18:25:09 +03:00
|
|
|
|
2016-04-03 19:28:23 +03:00
|
|
|
# This makefile is only intended for development
|
|
|
|
.PHONY: install
|
2016-04-03 18:21:13 +03:00
|
|
|
install:
|
2016-04-03 19:03:38 +03:00
|
|
|
sudo python3 setup.py install --install-scripts=/usr/bin
|
2016-04-03 11:56:00 +03:00
|
|
|
|
2016-04-03 19:28:23 +03:00
|
|
|
.PHONY: clean
|
2016-04-03 11:56:00 +03:00
|
|
|
clean:
|
|
|
|
rm -rf dist
|
|
|
|
rm -rf MANIFEST
|
|
|
|
rm -rf build
|
2016-06-03 02:21:55 +03:00
|
|
|
rm -rf nextcloud_news_updater.egg-info
|
2016-04-03 11:56:00 +03:00
|
|
|
|
2016-04-03 19:28:23 +03:00
|
|
|
.PHONY: update
|
2016-04-03 11:56:00 +03:00
|
|
|
update: clean
|
2016-06-03 02:21:55 +03:00
|
|
|
sudo pip3 uninstall nextcloud_news_updater
|
2016-04-03 18:25:09 +03:00
|
|
|
sudo python3 setup.py install
|
2016-04-03 11:56:00 +03:00
|
|
|
|
2016-04-03 19:28:23 +03:00
|
|
|
.PHONY: uninstall
|
2016-04-03 11:56:00 +03:00
|
|
|
uninstall: clean
|
2016-06-03 02:21:55 +03:00
|
|
|
sudo pip3 uninstall nextcloud_news_updater
|
2016-04-03 18:25:45 +03:00
|
|
|
|
2016-04-03 19:28:23 +03:00
|
|
|
.PHONY: clean
|
2016-04-03 18:25:45 +03:00
|
|
|
pypi: clean
|
2016-04-03 19:28:23 +03:00
|
|
|
python3 setup.py sdist upload
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
2016-04-03 23:40:05 +03:00
|
|
|
pep8 .
|
2016-06-03 02:21:55 +03:00
|
|
|
python3 -m nextcloud_news_updater --version
|
2016-05-04 23:12:21 +03:00
|
|
|
python3 -m unittest
|
2016-05-20 01:45:59 +03:00
|
|
|
#uncomment once mypy works properly
|
2016-05-20 09:09:08 +03:00
|
|
|
# make typecheck
|
|
|
|
|
|
|
|
.PHONY: typecheck
|
|
|
|
typecheck:
|
|
|
|
python3 -m mypy $(CURDIR)/owncloud_news_updater --disallow-untyped-defs
|
|
|
|
|