@@ -23,30 +23,22 @@ RELEASES=$(OUTDIR)/claat-darwin-amd64 \
2323	 $(OUTDIR ) /claat-linux-amd64 \ 
2424	 $(OUTDIR ) /claat-linux-386 \ 
2525	 $(OUTDIR ) /claat-windows-amd64.exe \ 
26- 	 $(OUTDIR ) /claat-windows-386.exe \ 
27- 	 $(OUTDIR ) /claat2-darwin-amd64 \ 
28- 	 $(OUTDIR ) /claat2-linux-amd64 \ 
29- 	 $(OUTDIR ) /claat2-linux-386 \ 
30- 	 $(OUTDIR ) /claat2-windows-amd64.exe \ 
31- 	 $(OUTDIR ) /claat2-windows-386.exe
26+ 	 $(OUTDIR ) /claat-windows-386.exe
3227
3328SRCS  = $(shell  find . -name '* .go')  render/tmpldata.go
3429
35- all : $(OUTDIR ) /claat  $( OUTDIR ) /claat2 
30+ all : $(OUTDIR ) /claat
3631
3732$(OUTDIR ) /claat : $(SRCS )  VERSION
38- 	go build -o $@  -ldflags " -X main.version=$( VERSION)  -X main.useElements=false " 
33+ 	go build -o $@  -ldflags " -X main.version=$( VERSION) " 
3934
40- $(OUTDIR ) /claat2 : $(SRCS )  VERSION
41- 	go build -o $@  -ldflags " -X main.version=$( VERSION)   -X main.useElements=true" 
42- 
43- serve : $(OUTDIR ) /claat2
35+ serve : $(OUTDIR ) /claat
4436	mkdir -p $(OUTDIR ) /deps
4537	cd  ../;  \ 
4638	    bazel build :bundle;  \ 
4739	    mv -f bazel-genfiles/bundle.zip claat/$(OUTDIRNAME ) /deps
4840	unzip -o $(OUTDIR ) /deps/bundle.zip -d $(OUTDIR ) /deps/codelab-elements
49- 	cd  bin;  ./claat2  serve
41+ 	cd  bin;  ./claat  serve
5042
5143release : $(RELEASES ) 
5244	echo  $(VERSION )  >  $(OUTDIR ) /VERSION
@@ -69,16 +61,8 @@ $(OUTDIR)/claat-%: GOARCH=$(subst .exe,,$(word 2,$(subst -, ,$*)))
6961$(OUTDIR ) /claat-%  : $(SRCS )  VERSION
7062	CGO_ENABLED=0 GOOS=$(GOOS )  GOARCH=$(GOARCH )  go build \ 
7163		-buildmode exe \ 
72- 		-ldflags " -X main.version=$( VERSION)   -X main.useElements=false -s -w"   \ 
73- 		-o $@ 
74- 
75- $(OUTDIR ) /claat2-%  : GOOS=$(firstword  $(subst  -, ,$* ) ) 
76- $(OUTDIR ) /claat2-%  : GOARCH=$(subst  .exe,,$(word  2,$(subst  -, ,$* ) ) ) 
77- $(OUTDIR ) /claat2-%  : $(SRCS )  VERSION
78- 	CGO_ENABLED=0 GOOS=$(GOOS )  GOARCH=$(GOARCH )  go build \ 
79- 		-buildmode exe \ 
80- 		-ldflags " -X main.version=$( VERSION)   -X main.useElements=true -s -w"   \ 
64+ 		-ldflags " -X main.version=$( VERSION)   -s -w"   \ 
8165		-o $@ 
8266
83- % /tmpldata.go : % /gen-tmpldata.go % /template-elements.html  % /template .html % /template.md % /template-offline.html
67+ % /tmpldata.go : % /gen-tmpldata.go % /template.html % /template.md % /template-offline.html
8468	cd  $*  &&  go generate
0 commit comments