From: Michael Göhler Date: Wed, 17 Sep 2014 20:26:41 +0000 (+0200) Subject: Merge pull request #7 from Pyrohh/master X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=ecc66f8a935eb4a3188b5336170182e34812fd40;hp=afbbaa204be1c70b746e05f4cc8558c37da0a2d9;p=smdp.git Merge pull request #7 from Pyrohh/master Makefile improvements --- 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