github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/doc/Makefile (about)

     1  # Copyright 2009 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  RAWHTML=\
     6  	articles/defer_panic_recover.rawhtml\
     7  	articles/error_handling.rawhtml\
     8  	articles/slices_usage_and_internals.rawhtml\
     9  	articles/laws_of_reflection.rawhtml\
    10  	articles/c_go_cgo.rawhtml\
    11  	articles/concurrency_patterns.rawhtml\
    12  	articles/godoc_documenting_go_code.rawhtml\
    13  	articles/gobs_of_data.rawhtml\
    14  	articles/json_and_go.rawhtml\
    15  	articles/json_rpc_tale_of_interfaces.rawhtml\
    16  	articles/image_draw.rawhtml\
    17  	articles/image_package.rawhtml\
    18  	effective_go.rawhtml\
    19  	go1.rawhtml\
    20  
    21  all: $(RAWHTML)
    22  
    23  %.rawhtml: %.html
    24  	godoc -url /doc/$< >$@
    25  
    26  clean:
    27  	rm -f $(RAWHTML)
    28  
    29  compare:
    30  	for i in $(RAWHTML); do \
    31  		godoc -url /doc/$${i/.rawhtml/.html} | diff -u $$i -; \
    32  	done