changeset 4664:7d2463c7b4ad

Added cmd/oct2str/oct2str to Makefile.
author Sascha Wilde <wilde@intevation.de>
date Mon, 14 Oct 2019 16:10:31 +0200
parents aa3a1e7e9527
children c47c8085cc7e 0ddb308fed37
files Makefile
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Oct 14 15:58:16 2019 +0200
+++ b/Makefile	Mon Oct 14 16:10:31 2019 +0200
@@ -14,7 +14,7 @@
 
 .PHONY: all gemma client clean
 
-all: gemma client
+all: gemma client tools
 
 $(ENVWARPPER):
 	@echo "Preparing go build environment:"
@@ -27,9 +27,14 @@
 	echo 'exec "$$@"' >>"$(ENVWARPPER)"
 	chmod +x "$(ENVWARPPER)"
 
+tools: oct2str
+
 gemma: $(ENVWARPPER)
 	"$(ENVWARPPER)" go build -o ./cmd/gemma/gemma ./cmd/gemma
 
+oct2str: $(ENVWARPPER)
+	"$(ENVWARPPER)" go build -o ./cmd/oct2str/oct2str ./cmd/oct2str
+
 client:
 	$(MAKE) -f Makefile.build -C client
 
@@ -40,7 +45,8 @@
 	v="gemma-$$(hg id -i)" ;\
         tar --transform "s@^@$${v}/@" \
 	    -cJf "../$${v}.tar.xz" \
-	    cmd/gemma/gemma schema style-templates web misc example_conf.toml
+	    cmd/gemma/gemma cmd/oct2str/oct2str schema style-templates \
+	    web misc example_conf.toml
 
 clean:
 	$(MAKE) -f Makefile.build -C client $@