aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2016-12-15 21:27:33 +0000
committerTomasz Kramkowski <tk@the-tk.com>2016-12-15 21:28:44 +0000
commit99778c999c364ad3e5967f7a9a0a3e484c279716 (patch)
tree0a0e4a83ea69e4bf5221b1f9f6cbc4ba46c1fa4e
parentfad06882fe3305983292dfa34d335ec461761b61 (diff)
downloadhktool-99778c999c364ad3e5967f7a9a0a3e484c279716.tar.gz
hktool-99778c999c364ad3e5967f7a9a0a3e484c279716.tar.xz
hktool-99778c999c364ad3e5967f7a9a0a3e484c279716.zip
Makefile: fix installing to empty location
install needs -t to always create the full destination directory instead of treating it as the destination file.
-rw-r--r--Makefile6
1 files 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)