From ef802b4fe7458cdb75c60c846db162fb39028d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 7 Mar 2022 20:28:35 +0100 Subject: Cleanup makefile. --- Makefile | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index be77b2c4..bb3b0b6b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: all clean test \ - static coverage \ + static \ go_files GUILE := guile @@ -40,25 +40,25 @@ clean: install: all install -d $(DESTDIR)$(GUILE_SITE_DIR) $(DESTDIR)$(GUILE_CCACHE_DIR) rsync -a module/ $(DESTDIR)$(GUILE_SITE_DIR) - rsync -a obj/ $(DESTDIR)$(GUILE_CCACHE_DIR) + rsync -a obj-$(GUILE_VERSION)/ $(DESTDIR)$(GUILE_CCACHE_DIR) install -d $(DESTDIR)/usr/share/calp/www - rsync -a static $(DESTDIR)/usr/share/calp/www + $(MAKE) -C static install install -m 644 -D -t $(DESTDIR)/usr/share/doc/calp README install -m 755 -D -t $(DESTDIR)/usr/lib/calp/ scripts/tzget - install -D production-main $(DESTDIR)/usr/bin/calp + install -m755 -D production-main $(DESTDIR)/usr/bin/calp README: README.in ./main text < README.in | sed "s/<>/`date -I`/" > README -test: go_files - tests/run-tests.scm - $(MAKE) coverage - -coverage: - genhtml \ - --show-details \ - --output-directory coverage \ - --prefix $(shell pwd) \ - --no-function-coverage \ - --quiet \ - lcov.info +lcov.info: $(GO_FILES) + env DEBUG=1 tests/run-tests.scm --coverage=$@ + +test: coverage + +GENHTML_FLAGS=--show-details \ + --prefix $(shell pwd)/module \ + --no-function-coverage \ + --quiet + +coverage: lcov.info + genhtml $(GENHTML_FLAGS) --output-directory $@ $< -- cgit v1.2.3