news-updater/Makefile

36 строки
805 B
Makefile
Исходник Обычный вид История

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
rm -rf owncloud_news_updater.egg-info
2016-04-03 19:28:23 +03:00
.PHONY: update
2016-04-03 11:56:00 +03:00
update: clean
2016-04-03 18:25:09 +03:00
sudo pip3 uninstall owncloud_news_updater
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-04-03 18:25:09 +03:00
sudo pip3 uninstall owncloud_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:
# keep it simple until we've got tests
pep8 owncloud_news_updater
python3 -m owncloud_news_updater --version