Skip to content

Commit 7b81b1d

Browse files
committed
Add make sample
1 parent 9f2b585 commit 7b81b1d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

claat/Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ RELEASES=$(OUTDIR)/claat-darwin-amd64 \
2626
$(OUTDIR)/claat-windows-386.exe
2727

2828
ifeq ($(OS), Windows_NT)
29-
SRCS = $(shell dir *.go /b/s)
29+
SRCS = $(shell dir *.go /b/s)
3030
else
31-
SRCS = $(shell find . -name '*.go')
31+
SRCS = $(shell find . -name '*.go')
3232
endif
3333

34-
all: $(OUTDIR)/claat
34+
all: $(OUTDIR)/claat sample
3535

3636
$(OUTDIR)/claat: $(SRCS) VERSION
3737
go build -o $@ -ldflags "-X main.version=$(VERSION)"
@@ -49,7 +49,7 @@ release: $(RELEASES)
4949
cd $(OUTDIR) && sha1sum claat* > sha1sum.txt
5050

5151
clean:
52-
rm -rf $(OUTDIR) render/tmpldata.go
52+
rm -rf $(OUTDIR) render/tmpldata.go
5353

5454
$(OUTDIR)/claat-%: GOOS=$(firstword $(subst -, ,$*))
5555
$(OUTDIR)/claat-%: GOARCH=$(subst .exe,,$(word 2,$(subst -, ,$*)))
@@ -61,3 +61,6 @@ $(OUTDIR)/claat-%: $(SRCS) VERSION
6161

6262
%/tmpldata.go: %/gen-tmpldata.go %/template.html %/template.md %/template-offline.html
6363
cd $* && go generate
64+
65+
sample: $(OUTDIR)/claat
66+
$(OUTDIR)/claat export -o ../sample/ ../sample/codelab.md

0 commit comments

Comments
 (0)