From 687ca490ddeae3d5ceabadc04834620180a5c09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 11 Jul 2018 14:03:36 +0000 Subject: [PATCH] Improve the Makefile --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 49fd579..7ea68e6 100644 --- a/Makefile +++ b/Makefile @@ -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