Skip to content

Commit

Permalink
Add default run target
Browse files Browse the repository at this point in the history
  • Loading branch information
hurufu committed Feb 13, 2024
1 parent 95a972f commit 0c7a740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion co/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ SOURCES := comultitask.c main.c $(GENERATED_SOURCES) $(LIB_SOURCES)

vpath %.c .. ../coro

.PHONY: clean all
.PHONY: clean all run

run: $(EXECUTABLE)
./$<
all: $(EXECUTABLE)
$(EXECUTABLE): $(SOURCES)
$(LINK.c) -o $@ $^ $(LDLIBS)
Expand Down

0 comments on commit 0c7a740

Please sign in to comment.