diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-03 18:25:09 +0300 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-03 18:25:09 +0300 |
commit | 9cbd79769a375a9f50df843fd1a6cf5815a1c2c9 (patch) | |
tree | f3392a0575f89fcd0ef320371f1ade41dadb040c /Makefile | |
parent | 22648422e984fba20fc8d5a9cd57bc3972d36069 (diff) |
Clean up makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 50 |
1 files changed, 6 insertions, 44 deletions
@@ -1,5 +1,7 @@ +# This makefile is only intended for development + install: - sudo python3 setup.py install + sudo python3 setup.py install --install-scripts=/usr/bin clean: rm -rf dist @@ -7,49 +9,9 @@ clean: rm -rf build rm -rf owncloud_news_updater.egg-info - update: clean - pip3 uninstall owncloud_news_updater - python3 setup.py install - - -preinitsetup: clean - mkdir -p /etc/owncloud/news - cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini - python3 setup.py install --install-scripts=/usr/bin - - -install-systemd: preinitsetup - cp $(CURDIR)/systemd/owncloud-news-updater.service /etc/systemd/system/ - - @echo "" - @echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:" - @echo " systemctl enable owncloud-news-updater.service" - @echo " systemctl start owncloud-news-updater.service" - @echo "to run the updater on startup and:" - @echo " systemctl restart owncloud-news-updater.service" - @echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini" - - -install-sysvinit: preinitsetup - cp $(CURDIR)/sysvinit/owncloud-news-updater /etc/init.d/ - - @echo "" - @echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:" - @echo " sudo update-rc.d owncloud-news-updater defaults" - @echo " sudo /etc/init.d/owncloud-news-updater start" - @echo "to run the updater on startup and:" - @echo " sudo /etc/init.d/owncloud-news-updater restart" - @echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini" - + sudo pip3 uninstall owncloud_news_updater + sudo python3 setup.py install uninstall: clean - rm -rf /etc/owncloud/news/updater.ini - rm -rf /etc/systemd/systemd/owncloud-news-updater.service - rm -rf /etc/init.d/owncloud-news-updater - pip3 uninstall owncloud_news_updater - - @echo "" - @echo "Uninstalled files. Please run: " - @echo " systemctl disable owncloud-news-updater" - @echo "to remove it from boot" + sudo pip3 uninstall owncloud_news_updater |