From cae082fd57d2612384893a46c46c523a200075b8 Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Wed, 17 Sep 2014 14:09:53 -0400 Subject: [PATCH] Makefile improvements: - Simplified install target using 'install -D' - Added uninstall target - Reenabled -Wall, the user should be aware of any supposed program errors --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4360f37..63a1feb 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ # along with this program. If not, see . # -CFLAGS = -O3 +CFLAGS = -O3 -Wall LDFLAGS = -s LDLIBS = -lncurses OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o @@ -37,8 +37,10 @@ clean: $(RM) $(OBJECTS) mdp install: mdp - install -d $(PREFIX)$(DESTDIR) - install -m 755 mdp $(PREFIX)$(DESTDIR)/mdp + install -Dm755 mdp $(PREFIX)$(DESTDIR)/mdp -.PHONY: all clean install +uninstall: + rm -f $(PREFIX)$(DESTDIR)/mdp + +.PHONY: all clean install uninstall -- 2.20.1