diff options
-rw-r--r-- | Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -60,15 +60,13 @@ all: $(derived-assets) $(objects): Makefile src/$(NAME).a: src/$(NAME).go - go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go - -tests/$(NAME).a: tests/$(NAME).go src/$(NAME).go - go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go src/$(NAME).go - src/main.a: src/main.go src/$(NAME).a tests/main.a: tests/main.go tests/$(NAME).a -src/main.a tests/main.a: - go tool compile $(GOCFLAGS) -o $@ -I $(@D) $*.go +src/$(NAME).a src/main.a tests/main.a: + go tool compile $(GOCFLAGS) -o $@ -p $(*F) -I $(@D) $*.go + +tests/$(NAME).a: tests/$(NAME).go src/$(NAME).go + go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go src/$(*F).go src/main.bin: src/main.a tests/main.bin: tests/main.a @@ -81,9 +79,9 @@ $(NAME).bin: src/main.bin tests.bin-check = \ - tests/main.bin-check + tests/main.bin-check \ -$(tests.bin-check): tests/main.bin +tests/main.bin-check: tests/main.bin $(tests.bin-check): $(EXEC)$*.bin |