let the Makefile manage the symlink
This commit is contained in:
parent
1324d8e961
commit
90dcb20d35
|
@ -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
|
||||
|
|
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue