Skip to content

Commit

Permalink
add sample Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
t-yuki committed Jun 15, 2014
1 parent 25a66af commit 0ca34ba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Makefile.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

PACKAGES := io image net net/http bufio reflect net/rpc go/ast os mime/multipart regexp/syntax

all: $(addsuffix .png, $(PACKAGES))

.PRECIOUS: %.puml

godoc2puml: FORCE
go build

%.puml: godoc2puml FORCE
./godoc2puml $* > $(subst /,.,$*).puml

%.png: %.puml
java -jar plantuml.jar -pipe -tpng < $(subst /,.,$*).puml > $(subst /,.,$*).png

FORCE:
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want to draw a diagram as a image file, it depends on java and graphviz.
$ # or, etc...
$ sudo apt-get install java graphviz

It also depends on plantuml. Well, it is already attached so you do not need to install separately.
It also depends on plantuml. <del>Well, it is already attached so you do not need to install separately.</del>

Usage
-----
Expand Down Expand Up @@ -52,6 +52,7 @@ Many, but...
* elementType of map is not recognized as an association
* relations of embed struct are not recognized properly
* interface extensions is recognized only when explicit extensions, not implicit extension
* cant handle build constraints tag
* ...

References
Expand Down

0 comments on commit 0ca34ba

Please sign in to comment.