Skip to content

Commit

Permalink
let the Makefile manage the symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru authored and zah committed Feb 24, 2019
1 parent 1324d8e commit 90dcb20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 90dcb20

Please sign in to comment.