Skip to content

Commit

Permalink
Update: reinstate double colon for actual file libgraftcp.a
Browse files Browse the repository at this point in the history
Change the libgraftcp.a target back to using double colons (::). The adjustments provide clarity and proper semantic meaning in the Makefile, ensuring the libgraftcp.a is treated as a real file target and not a .PHONY action.
  • Loading branch information
hmgle committed Feb 24, 2024
1 parent 09fa91f commit feb4f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ INSTALL = install -D

TARGET = graftcp-local mgraftcp

.PHONY: all clean ../libgraftcp.a install install_systemd enable_systemd disable_systemd uninstall_systemd uninstall install_service uninstall_service
.PHONY: all clean install install_systemd enable_systemd disable_systemd uninstall_systemd uninstall install_service uninstall_service

all: $(TARGET)

Expand All @@ -32,7 +32,7 @@ graftcp-local: $(wildcard *.go cmd/graftcp-local/*.go)
mgraftcp: $(wildcard *.go cmd/mgraftcp/*.go) ../libgraftcp.a
${GO_BUILD_PREFIX_FLAGS} ${CGO_FLAGS} go build -ldflags "-s -w -X main.version=${VERSION}" ./cmd/mgraftcp

../libgraftcp.a:
../libgraftcp.a::
$(MAKE) -C .. libgraftcp.a

install: $(TARGET)
Expand Down

0 comments on commit feb4f32

Please sign in to comment.