From: Michael Reed Date: Wed, 17 Sep 2014 18:09:53 +0000 (-0400) Subject: Makefile improvements: X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=cae082fd57d2612384893a46c46c523a200075b8;p=smdp.git Makefile improvements: - Simplified install target using 'install -D' - Added uninstall target - Reenabled -Wall, the user should be aware of any supposed program errors --- 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