2010-04-28 12:36:39 +10:00
|
|
|
# Copyright 2010 The Go Authors. All rights reserved.
|
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
all: index.html
|
|
|
|
|
|
2012-02-25 01:09:05 +08:00
|
|
|
CLEANFILES:=srcextract.bin htmlify.bin get.bin
|
2010-04-28 12:36:39 +10:00
|
|
|
|
2011-08-29 09:24:24 -04:00
|
|
|
index.html: wiki.html srcextract.bin htmlify.bin
|
2011-03-07 15:48:39 +11:00
|
|
|
PATH=.:$$PATH awk '/^!/{system(substr($$0,2)); next} {print}' < wiki.html | tr -d '\r' > index.html
|
2010-04-28 12:36:39 +10:00
|
|
|
|
2011-01-27 23:19:37 +10:00
|
|
|
test: get.bin
|
2011-01-26 13:02:09 -05:00
|
|
|
bash ./test.sh
|
2011-01-27 23:19:37 +10:00
|
|
|
rm -f get.6 get.bin
|
2010-04-28 12:36:39 +10:00
|
|
|
|
2012-02-25 01:09:05 +08:00
|
|
|
%.bin: %.go
|
|
|
|
|
go build -o $@ $^
|
2010-04-28 12:36:39 +10:00
|
|
|
|
2012-02-25 01:09:05 +08:00
|
|
|
clean:
|
|
|
|
|
rm -f $(CLEANFILES)
|