Now installs in /usr/local/
authorFrancois Fleuret <francois@fleuret.org>
Mon, 27 Aug 2018 05:56:04 +0000 (07:56 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 27 Aug 2018 05:56:04 +0000 (07:56 +0200)
Makefile

index 7af163a..fc6b97b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,8 @@
 #  along with finddup.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-BINARY_PATH = $(DESTDIR)/usr/bin
-MAN_PATH = $(DESTDIR)/usr/share/man/man1
+BINARY_PATH = $(DESTDIR)/usr/local/bin
+MAN_PATH = $(DESTDIR)/usr/local/share/man/man1
 
 ifeq ($(WITH_MD5),yes)
   LDFLAGS=-lssl
@@ -48,6 +48,7 @@ finddup: finddup.o
        $(CC) -o $@ $^ $(LDFLAGS)
 
 install: finddup
+       mkdir -p $(BINARY_PATH) $(MAN_PATH)
        install -m 755 finddup $(BINARY_PATH)
        install -m 644 finddup.1 $(MAN_PATH)
        gzip $(MAN_PATH)/finddup.1