Skip to content

Commit bdb4681

Browse files
committed
chore: add clean target Makefile
1 parent 6022a1f commit bdb4681

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

bin/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
all: agit alsp apty avim
1+
BINARIES := agit alsp apty avim
2+
all: $(BINARIES)
23

3-
agit alsp apty avim: Makefile avim.h base.h vec.h
4+
$(BINARIES): Makefile avim.h base.h vec.h
45
agit alsp apty: acmd.h
56
alsp: io.h
67

@@ -9,3 +10,6 @@ LDLIBS_alsp = -ljansson
910

1011
.c:
1112
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) $(LDLIBS_$@)
13+
14+
clean:
15+
rm -f $(BINARIES) *~

0 commit comments

Comments
 (0)