aboutsummaryrefslogtreecommitdiff
path: root/Makefiles/go.mk
blob: b5e95cd4ea3d48a6805954a7169005ab45cb5f41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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]