summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJared Shields <shieldsjared@gmail.com>2016-10-04 08:56:01 -0400
committerChristopher Speller <crspeller@gmail.com>2016-10-04 08:56:01 -0400
commit3bac3a006128ebcb4a6ea6dd5e2aa2f8614cb434 (patch)
treec63b2ea94d2de3463137c91d40bc405452637039 /Makefile
parent1a5a6244701615b4f085bb5337d92c2809ac95d3 (diff)
downloadchat-3bac3a006128ebcb4a6ea6dd5e2aa2f8614cb434.tar.gz
chat-3bac3a006128ebcb4a6ea6dd5e2aa2f8614cb434.tar.bz2
chat-3bac3a006128ebcb4a6ea6dd5e2aa2f8614cb434.zip
Updated make files/scripts to accomodate execution/building in windows in addition to linux/mac (#4135)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e3ed6e1a5..ba8321b67 100644
--- a/Makefile
+++ b/Makefile
@@ -377,22 +377,25 @@ run-fullmap: run-server run-client-fullmap
stop-server:
@echo Stopping mattermost
+ifeq ($(BUILDER_GOOS_GOARCH),"windows_amd64")
+ wmic process where "Caption='go.exe' and CommandLine like '%go.exe run%'" call terminate
+ wmic process where "Caption='mattermost.exe' and CommandLine like '%go-build%'" call terminate
+else
@for PID in $$(ps -ef | grep "[g]o run" | awk '{ print $$2 }'); do \
echo stopping go $$PID; \
kill $$PID; \
done
-
@for PID in $$(ps -ef | grep "[g]o-build" | awk '{ print $$2 }'); do \
echo stopping mattermost $$PID; \
kill $$PID; \
done
+endif
stop-client:
@echo Stopping mattermost client
cd $(BUILD_WEBAPP_DIR) && $(MAKE) stop
-
stop: stop-server stop-client
restart: restart-server restart-client