2015-02-08 13:46:56 +00:00
|
|
|
#!/bin/sh
|
2013-03-30 23:55:53 +00:00
|
|
|
|
2017-03-20 13:06:01 +00:00
|
|
|
# Copyright (C) 2013-2017 Christian Thomas Jacobs.
|
2013-03-30 23:55:53 +00:00
|
|
|
|
|
|
|
# This file is part of PyQSO.
|
|
|
|
|
|
|
|
# PyQSO is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# PyQSO is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2016-01-27 16:33:30 +00:00
|
|
|
.PHONY: input clean install docs test
|
2015-02-08 12:41:37 +00:00
|
|
|
|
2015-02-08 13:46:56 +00:00
|
|
|
input: clean install docs
|
2013-03-30 23:55:53 +00:00
|
|
|
|
2013-03-30 23:58:25 +00:00
|
|
|
install:
|
2016-01-27 20:28:50 +00:00
|
|
|
@echo "*** Installing PyQSO"
|
2015-10-12 00:23:37 +00:00
|
|
|
python3 setup.py install
|
2013-03-30 23:55:53 +00:00
|
|
|
|
2015-02-08 12:39:31 +00:00
|
|
|
docs:
|
2016-01-27 20:28:50 +00:00
|
|
|
@echo "*** Building the documentation"
|
2015-02-08 12:39:31 +00:00
|
|
|
cd docs; make html; cd ..
|
2013-09-14 23:21:58 +00:00
|
|
|
|
2016-01-27 16:33:30 +00:00
|
|
|
test:
|
2016-01-27 20:28:50 +00:00
|
|
|
@echo "*** Running the unit tests"
|
2017-04-15 00:14:17 +00:00
|
|
|
python3 -m unittest discover --start-directory=tests --pattern=*.py --verbose
|
2013-03-30 23:55:53 +00:00
|
|
|
|
|
|
|
clean:
|
2016-01-27 20:28:50 +00:00
|
|
|
@echo "*** Cleaning docs directory"
|
2015-02-08 12:39:31 +00:00
|
|
|
cd docs; make clean; cd ..
|
2016-01-27 20:28:50 +00:00
|
|
|
@echo "*** Cleaning pyqso directory"
|
2017-04-24 16:06:33 +00:00
|
|
|
rm -f ADIF.test_*.adi Cabrillo.test_*.log; cd pyqso; rm -f *.pyc ADIF.test_*.adi Cabrillo.test_*.log; cd ..
|
2016-01-27 20:28:50 +00:00
|
|
|
@echo "*** Removing build directory"
|
2015-02-16 10:58:12 +00:00
|
|
|
rm -rf build
|