Skip to content
Snippets Groups Projects
Commit 2c4961db authored by Jérôme Benoit's avatar Jérôme Benoit Committed by Micah Elizabeth Scott
Browse files

Fix submodule target path in the server Makefile.

parent f83e5e24
No related branches found
No related tags found
No related merge requests found
...@@ -175,9 +175,9 @@ clean: ...@@ -175,9 +175,9 @@ clean:
rm -f $(CLEAN_FILES) $(TARGET) rm -f $(CLEAN_FILES) $(TARGET)
# Git submodules handling. TODO: Add submodules cleaning to clean target # Git submodules handling. TODO: Add submodules cleaning to clean target
SUBMODULES_TARGETS:=$(shell git config -f ../.gitmodules --get-regexp submodule'.*\.'path | cut -d ' ' -f 2) SUBMODULES_TARGETS:=$(shell git config -f ../.gitmodules --get-regexp submodule'.*\.'path|cut -d ' ' -f 2|cut -d '/' -f 2)
$(SUBMODULES_TARGETS): $(SUBMODULES_TARGETS):
cd .. && git submodule update --init -- $@ && cd $@ && git checkout -f HEAD && git clean -dfx cd .. && git submodule update --init -- server/$@ && cd server/$@ && git checkout -f HEAD && git clean -dfx
submodules: $(SUBMODULES_TARGETS) submodules: $(SUBMODULES_TARGETS)
.PHONY: submodules $(SUBMODULES_TARGETS) clean all .PHONY: submodules $(SUBMODULES_TARGETS) clean all
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment