diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-01-14 18:06:57 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-01-14 18:06:57 +0000 |
| commit | a4d08790a2cbb958714fa3cadac434dcdd0c29ed (patch) | |
| tree | 6415f7d2b51638c00073e4f4493470afe15e0769 | |
| parent | Add separate makefile for r package (diff) | |
| download | SyncRNG-a4d08790a2cbb958714fa3cadac434dcdd0c29ed.tar.gz SyncRNG-a4d08790a2cbb958714fa3cadac434dcdd0c29ed.zip | |
add top-level makefile for testing
| -rw-r--r-- | Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22a9fe1 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +# Makefile for SyncRNG +# +# Author: G.J.J. van den Burg +# Copyright (c) 2021 G.J.J. van den Burg +# License: See LICENSE file +# Date: 2021-01-14 +# + +SHELL := bash +.SHELLFLAGS := -eu -o pipefail -c +MAKEFLAGS += --no-builtin-rules + +PYTHON_DIR=./python +R_DIR=./R + +.PHONY: all + +all: test + +########### +# Testing # +########### + +.PHONY: test test_R test_python + +test: test_R test_python + +test_R: + $(MAKE) -C $(R_DIR) test + +test_python: + $(MAKE) -c $(PYTHON_DIR) test + +############ +# Clean up # +############ + +.PHONY: clean clean_R clean_python + +clean: clean_R clean_python + +clean_R: + $(MAKE) -C $(R_DIR) clean + +clean_python: + $(MAKE) -C $(PYTHON_DIR) clean + |
