let the Makefile manage the symlink
This commit is contained in:
parent
1324d8e961
commit
90dcb20d35
|
@ -9,6 +9,9 @@
|
||||||
# ntags/ctags output
|
# ntags/ctags output
|
||||||
/tags
|
/tags
|
||||||
|
|
||||||
|
# a symlink that can't be added to the repo because of Windows
|
||||||
|
/nimbus.nims
|
||||||
|
|
||||||
# Ignore dynamic, static libs and libtool archive files
|
# Ignore dynamic, static libs and libtool archive files
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -99,7 +99,7 @@ build:
|
||||||
# (timestamp-checked) prerequisites here
|
# (timestamp-checked) prerequisites here
|
||||||
#- $(NIM_BINARY) is both a proxy for submodules having been initialised
|
#- $(NIM_BINARY) is both a proxy for submodules having been initialised
|
||||||
# and a check for the actual compiler build
|
# 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
|
#- depends on Git submodules being initialised
|
||||||
#- fakes a Nimble package repository with the minimum info needed by the Nim compiler
|
#- 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;\
|
echo -e "$$($(PWD))\n$$($(PWD))" > $$toplevel/$(NIMBLE_DIR)/pkgs/$${sm_path#*/}-#head/$${sm_path#*/}.nimble-link;\
|
||||||
} || true'
|
} || true'
|
||||||
|
|
||||||
|
# symlink
|
||||||
|
nimbus.nims:
|
||||||
|
ln -s nimbus.nimble $@
|
||||||
|
|
||||||
# builds and runs all tests
|
# builds and runs all tests
|
||||||
test: | build deps
|
test: | build deps
|
||||||
$(ENV_SCRIPT) nim test $(NIM_PARAMS) nimbus.nims
|
$(ENV_SCRIPT) nim test $(NIM_PARAMS) nimbus.nims
|
||||||
|
|
Loading…
Reference in New Issue