2020-11-24 09:57:35 +01:00
|
|
|
include options.mk
|
|
|
|
|
2020-12-02 18:18:47 +01:00
|
|
|
.PHONY: sdist frontend pybinding results clean
|
2020-12-02 08:49:59 +01:00
|
|
|
|
|
|
|
|
2020-12-02 18:18:47 +01:00
|
|
|
foo:
|
|
|
|
echo $(VERSION)
|
|
|
|
|
|
|
|
sdist: dist/msspec-$(VERSION).tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
frontend: $(INSTALL_PREFIX)/bin/msspec
|
|
|
|
|
|
|
|
|
|
|
|
dist/msspec-$(VERSION).tar.gz: pybinding
|
2020-12-02 08:49:59 +01:00
|
|
|
@echo "Creating Python source distribution..."
|
|
|
|
@python setup.py sdist
|
|
|
|
|
2020-12-02 18:18:47 +01:00
|
|
|
$(INSTALL_PREFIX)/bin/msspec:
|
|
|
|
@cat msspec.sh.template | sed 's/__VERSION__/$(VERSION)/' > $@
|
|
|
|
@chmod u+x $@
|
|
|
|
|
2020-11-24 09:57:35 +01:00
|
|
|
|
|
|
|
pybinding:
|
|
|
|
@echo "Building Python binding for phagen and spec..."
|
|
|
|
@+$(MAKE) -C msspec/phagen/fortran all
|
|
|
|
@+$(MAKE) -C msspec/spec/fortran all
|
2020-12-02 18:18:47 +01:00
|
|
|
@echo "$(VERSION)" > VERSION
|
2020-11-24 09:57:35 +01:00
|
|
|
|
|
|
|
results: msspec/results.txt
|
|
|
|
|
|
|
|
msspec/results.txt: pybinding
|
|
|
|
@echo "Generating results for unittests"
|
|
|
|
@coverage run --source=./ --omit=msspec/es/*,msspec/msspecgui/* msspec/create_tests_results.py
|
|
|
|
# create the html coverage report
|
|
|
|
@coverage html -d ../doc/source/htmlcov
|
|
|
|
@rm .coverage
|
|
|
|
|
|
|
|
tests: pybinding
|
|
|
|
@echo "Runing unittests"
|
|
|
|
@python -m msspec.tests 1>/dev/null
|
|
|
|
|
2020-11-30 16:39:29 +01:00
|
|
|
clean::
|
2020-11-24 09:57:35 +01:00
|
|
|
@echo "Cleaning all..."
|
|
|
|
@find ./ -type f -name '*.pyc' -exec rm -f {} +
|
|
|
|
@find ./ -type d -name '__pycache__' -exec rm -rf {} +
|
|
|
|
@+$(MAKE) -C msspec/spec/fortran clean
|
|
|
|
@+$(MAKE) -C msspec/phagen/fortran clean
|
|
|
|
# remove previous sdist
|
|
|
|
@rm -rf dist
|
|
|
|
@rm -rf *.egg*
|
2020-12-02 18:18:47 +01:00
|
|
|
@rm VERSION
|
2020-11-24 09:57:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "help message"
|
|
|
|
|