github.com/thockin/go2make@v0.0.0-20221008213743-c1956c0434a7/README.md (about) 1 # go2make 2 3 A tool which generates Makefile logic to mimic what Go does internally. 4 5 This used to be part of kubernetes, but no longer. I didn't want to lose it 6 entirely, so here is a fork with a bit of history. 7 8 ## Example: 9 10 ``` 11 $ ./go2make . 12 .go2make/by-pkg/github.com/thockin/go2make/_files: /home/thockin/src/go2make 13 @mkdir -p $(@D) 14 @ls $</*.go | LC_ALL=C sort > $@.tmp 15 @if ! cmp -s $@.tmp $@; then \ 16 cat $@.tmp > $@; \ 17 fi 18 @rm -f $@.tmp 19 20 .go2make/by-pkg/github.com/thockin/go2make/_pkg: .go2make/by-pkg/github.com/thockin/go2make/_files \ 21 go2make.go 22 @mkdir -p $(@D) 23 @touch $@ 24 25 .go2make/by-path//home/thockin/src/go2make/_pkg: .go2make/by-pkg/github.com/thockin/go2make/_pkg 26 @mkdir -p $(@D) 27 @touch $@ 28 ```