let the Makefile manage the symlink

This commit is contained in:
Ștefan Talpalaru 2019-02-16 22:45:19 +01:00 committed by zah
parent 1324d8e961
commit 90dcb20d35
2 changed files with 8 additions and 1 deletions

3
.gitignore vendored
View File

@ -9,6 +9,9 @@
# ntags/ctags output
/tags
# a symlink that can't be added to the repo because of Windows
/nimbus.nims
# Ignore dynamic, static libs and libtool archive files
*.so
*.dylib

View File

@ -99,7 +99,7 @@ build:
# (timestamp-checked) prerequisites here
#- $(NIM_BINARY) is both a proxy for submodules having been initialised
# and a check for the actual compiler build
deps: $(NIM_BINARY) $(NIMBLE_DIR)
deps: $(NIM_BINARY) $(NIMBLE_DIR) nimbus.nims
#- depends on Git submodules being initialised
#- fakes a Nimble package repository with the minimum info needed by the Nim compiler
@ -112,6 +112,10 @@ $(NIMBLE_DIR): | $(NIM_BINARY)
echo -e "$$($(PWD))\n$$($(PWD))" > $$toplevel/$(NIMBLE_DIR)/pkgs/$${sm_path#*/}-#head/$${sm_path#*/}.nimble-link;\
} || true'
# symlink
nimbus.nims:
ln -s nimbus.nimble $@
# builds and runs all tests
test: | build deps
$(ENV_SCRIPT) nim test $(NIM_PARAMS) nimbus.nims