From 99778c999c364ad3e5967f7a9a0a3e484c279716 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 15 Dec 2016 21:27:33 +0000 Subject: Makefile: fix installing to empty location install needs -t to always create the full destination directory instead of treating it as the destination file. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3c203df..ec647c4 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,9 @@ debug: CFLAGS += -ggdb -Og -Werror debug: LDFLAGS += -ggdb -Og install: $(PROG) $(MANPAGE) - install -Dm755 -s $(PROG) $(DESTDIR)$(PREFIX)$(bindir) - install -Dm644 ./data/* -t $(DESTDIR)$(PREFIX)$(datarootdir)/$(PROG)/ - install -Dm644 $(MANPAGE) $(DESTDIR)$(PREFIX)$(mandir)/man1/ + install -Dm755 -s $(PROG) -t $(DESTDIR)$(PREFIX)$(bindir) + install -Dm644 ./data/* -t $(DESTDIR)$(PREFIX)$(datarootdir)/$(PROG) + install -Dm644 $(MANPAGE) -t $(DESTDIR)$(PREFIX)$(mandir)/man1 clean: $(RM) $(OBJ) $(OBJ:.o=.d) $(PROG) -- cgit v1.2.3-54-g00ecf