github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/doc/articles/wiki/Makefile (about)

     1  # Copyright 2010 The Go Authors. All rights reserved.
     2  # Use of this source code is governed by a BSD-style
     3  # license that can be found in the LICENSE file.
     4  
     5  all: index.html
     6  
     7  CLEANFILES:=srcextract.bin htmlify.bin get.bin
     8  
     9  index.html: wiki.html srcextract.bin htmlify.bin
    10  	PATH=.:$$PATH awk '/^!/{system(substr($$0,2)); next} {print}' < wiki.html | tr -d '\r' > index.html
    11  
    12  test: get.bin
    13  	bash ./test.sh
    14  	rm -f get.6 get.bin
    15  
    16  %.bin: %.go
    17  	go build -o $@ $^
    18  
    19  clean:
    20  	rm -f $(CLEANFILES)