diff options
author | Thomas Voss <mail@thomasvoss.com> | 2022-11-30 12:23:04 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2022-11-30 12:23:04 +0100 |
commit | 4742dd73046c53cff7fe54deee58358c3b193206 (patch) | |
tree | a0622b3cac84df4da90f753ebef8e160adefb25d /Makefiles/go.mk | |
parent | 809b649d862cbfee004c9c87bb0c9ad7475412e1 (diff) |
Add default Makefiles
Diffstat (limited to 'Makefiles/go.mk')
-rw-r--r-- | Makefiles/go.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefiles/go.mk b/Makefiles/go.mk new file mode 100644 index 0000000..b5e95cd --- /dev/null +++ b/Makefiles/go.mk @@ -0,0 +1,13 @@ +.POSIX: + +all: + sed '/START PART 2/,/END PART 2/d' puzzles.go >tmp1.go + sed '/START PART 1/,/END PART 1/d' puzzles.go >tmp2.go + go build tmp1.go + go build tmp2.go + mv tmp1 puzzle-1 + mv tmp2 puzzle-2 + rm -f tmp[12].go + +clean: + rm -f puzzle-[12] |