diff options
| author | EuAndreh <eu@euandre.org> | 2024-08-11 08:18:40 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2024-08-11 08:18:40 -0300 |
| commit | 4f158d23acf78fe6055b6a0da7ce1bf083012cf9 (patch) | |
| tree | 74e1faf2339fd38f0c20121e5405e3ba53fc8eb6 | |
| parent | Build with "go tool" and remove uneeded dependencies (diff) | |
| download | glaze-4f158d23acf78fe6055b6a0da7ce1bf083012cf9.tar.gz glaze-4f158d23acf78fe6055b6a0da7ce1bf083012cf9.tar.xz | |
Makefile: Simplify a bit compile rule
| -rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -60,16 +60,14 @@ all: $(derived-assets) $(objects): Makefile src/$(NAME).a: src/$(NAME).go - go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go +src/main.a: src/main.go src/$(NAME).a +tests/main.a: tests/main.go tests/$(NAME).a +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.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/main.bin: src/main.a tests/main.bin: tests/main.a src/main.bin tests/main.bin: |
