X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=15fd54caa7d905cb001a48754eff8ca682d8a7ce;hb=072515bbb5e9ab6125d4cf237cd253a33eab1bad;hp=33271c220e690a95bb7d8e7471f7234575e6296f;hpb=f38c2f467878d066ae27628160ac22f48e19fdaa;p=smdp.git diff --git a/Makefile b/Makefile index 33271c2..15fd54c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # Makefile -# Copyright (C) 2015 Michael Goehler +# Copyright (C) 2016 Michael Goehler # # This file is part of mdp. # @@ -24,7 +24,7 @@ SOURCES = $(wildcard src/*.c) OBJECTS = $(SOURCES:.c=.o) TARGET = mdp DESTDIR = -PREFIX = /usr/local +PREFIX ?= /usr/local CURSES = ncursesw LDFLAGS ?= -s @@ -61,6 +61,7 @@ clean: install: install -d $(DESTDIR)$(PREFIX)/bin install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + install -d $(DESTDIR)$(PREFIX)/share/man/man1 install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1 uninstall: