Improve the Makefile

This commit is contained in:
Juhani Krekelä 2018-07-11 14:03:36 +00:00
parent 772f1ef657
commit 687ca490dd
1 changed files with 8 additions and 5 deletions

View File

@ -9,15 +9,18 @@ LDFLAGS +=
all: lewdfingerd
install: all
install lewdfingerd $(BINDIR)
lewdfingerd: lewdfingerd.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
.PHONY: all install clean distclean
.PHONY: all install uninstall clean distclean
install: all
install lewdfingerd $(BINDIR)
uninstall:
rm -f $(BINDIR)/lewdfingerd
clean:
rm lewdfingerd
rm -f lewdfingerd
distclean: clean