Add config.json.in example and cleanup windows package.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 6 Dec 2017 10:22:45 +0000 (11:22 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 6 Dec 2017 10:30:32 +0000 (11:30 +0100)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Makefile

index cd1cf05..44e3d0a 100644 (file)
--- 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)"