Skip to content

Commit

Permalink
Fix incremental builds using make
Browse files Browse the repository at this point in the history
Add .PHONY to to the release and debug library targets so running make
does the right thing after changing the source.

It is possible to use cargo directly, but this means a developer need to
also run the more commands manually for each build which is error prone.

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Feb 18, 2025
1 parent 8046252 commit 72fc21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ifeq ($(PREFIX),)
PREFIX := /usr/local
endif

.PHONY: install clean
.PHONY: install clean $(LIBRARY_RELEASE_$(OS)) $(LIBRARY_DEBUG_$(OS))

all: $(LIBRARY_RELEASE_$(OS)) libkrun.pc

Expand Down

0 comments on commit 72fc21e

Please sign in to comment.