changeset 5701:c23fa3d1824c sr-v2

Build meshmigrate via Makefile
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 13 Feb 2024 23:25:48 +0100
parents 45240edad249
children fe83406fe7ed
files Makefile
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Feb 13 23:05:59 2024 +0100
+++ b/Makefile	Tue Feb 13 23:25:48 2024 +0100
@@ -12,9 +12,9 @@
 
 export BUILDBASE
 
-.PHONY: all gemma gmaggregate client clean
+.PHONY: all gemma gmaggregate meshmigrate client clean
 
-all: gemma gmaggregate client
+all: gemma gmaggregate meshmigrate client
 
 $(ENVWARPPER):
 	@echo "Preparing go build environment:"
@@ -34,11 +34,15 @@
 gmaggregate: $(ENVWARPPER)
 	cd ./contrib/gmaggregate; "$(ENVWARPPER)" go build
 
+meshmigrate: $(ENVWARPPER)
+	cd ./cmd/meshmigrate; "$(ENVWARPPER)" go build
+
 client:
 	$(MAKE) -f Makefile.build -C client
 
 install: gemma
 	cp cmd/gemma/gemma $(BINDIR)
+	cp cmd/meshmigrate/meshmigrate $(BINDIR)
 	cp contrib/gmaggregate/gmaggregate $(BINDIR)
 
 tar: all
@@ -46,6 +50,7 @@
         tar --transform "s@^@$${v}/@" \
 	    -cJf "../$${v}.tar.xz" \
 	    cmd/gemma/gemma \
+	    cmd/meshmigrate/meshmigrate \
 	    contrib/gmaggregate/gmaggregate \
 	    schema style-templates report-templates \
 	    web misc example_conf.toml
@@ -53,6 +58,7 @@
 clean:
 	$(MAKE) -f Makefile.build -C client $@
 	rm -f contrib/gmaggregate/gmaggregate
+	rm -f cmd/meshmigrate/meshmigrate
 	rm -f cmd/gemma/gemma
 	chmod -R u+w "$(BUILDBASE)" # This is neccessary for deletion to work...
 	rm -rf "$(BUILDBASE)"