summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-06 11:22:45 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-06 11:30:32 +0100
commitfa388b959a98d8e60c9e591d50a3862cb77b0457 (patch)
treec567976d767c3dcab538a8bf94821d49c7920897 /Makefile
parentd0d64817590d38d182faeb0e040861d3d3cb9f3b (diff)
Add config.json.in example and cleanup windows package.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cd1cf05..44e3d0a 100644
--- a/Makefile
+++ b/Makefile
@@ -155,7 +155,10 @@ package: clean tools/syncthing vendor build
@mkdir -p $(PACKAGE_DIR)/$(TARGET)/www $(PACKAGE_DIR)/scripts
@cp -a $(LOCAL_BINDIR)/* $(PACKAGE_DIR)/$(TARGET)/
@cp -a webapp/dist/* $(PACKAGE_DIR)/$(TARGET)/www/
- @cp -r $(ROOT_SRCDIR)/conf.d $(ROOT_SRCDIR)/scripts $(PACKAGE_DIR)/$(TARGET)/
+ifneq ($(GOOS), windows)
+ @cp -r $(ROOT_SRCDIR)/conf.d $(ROOT_SRCDIR)/scripts $(PACKAGE_DIR)/$(TARGET)/
+endif
+ @cp $(ROOT_SRCDIR)/conf.d/etc/xds-agent/config.json $(PACKAGE_DIR)/$(TARGET)/config.json.in
@cd $(PACKAGE_DIR) && zip -r $(ROOT_SRCDIR)/$(PACKAGE_ZIPFILE) ./$(TARGET)
@echo "### Package $(PACKAGE_ZIPFILE) has been successfuly built - $(BUILD_MODE)"