2010-04-27 20:36:39 -06: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.
|
|
|
|
|
2010-08-18 08:08:49 -06:00
|
|
|
include ../../../src/Make.inc
|
2010-04-27 20:36:39 -06:00
|
|
|
|
|
|
|
all: index.html
|
|
|
|
|
2010-08-30 13:40:56 -06:00
|
|
|
include ../../../src/Make.common
|
2010-04-27 20:36:39 -06:00
|
|
|
|
2011-03-27 21:39:42 -06:00
|
|
|
CLEANFILES+=index.html srcextract.bin htmlify.bin get.bin
|
2010-04-27 20:36:39 -06:00
|
|
|
|
2011-08-29 07:24:24 -06:00
|
|
|
index.html: wiki.html srcextract.bin htmlify.bin
|
2011-03-06 21:48:39 -07:00
|
|
|
PATH=.:$$PATH awk '/^!/{system(substr($$0,2)); next} {print}' < wiki.html | tr -d '\r' > index.html
|
2010-04-27 20:36:39 -06:00
|
|
|
|
2011-01-27 06:19:37 -07:00
|
|
|
test: get.bin
|
2011-01-26 11:02:09 -07:00
|
|
|
bash ./test.sh
|
2011-01-27 06:19:37 -07:00
|
|
|
rm -f get.6 get.bin
|
2010-04-27 20:36:39 -06:00
|
|
|
|
|
|
|
%.bin: %.$O
|
2010-08-30 13:40:56 -06:00
|
|
|
$(LD) -o $@ $<
|
2011-01-28 07:42:51 -07:00
|
|
|
|
|
|
|
%.$O: %.go
|
2010-08-30 13:40:56 -06:00
|
|
|
$(GC) $*.go
|
2010-04-27 20:36:39 -06:00
|
|
|
|