Code

Create directories during make install
authorJonas Fonseca <fonseca@diku.dk>
Mon, 24 Jul 2006 21:41:33 +0000 (23:41 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Mon, 24 Jul 2006 21:41:33 +0000 (23:41 +0200)
"In install there should be also mkdir -p $(DESTDIR)$(bindir)." --witekfl.

Makefile

index 0b970d914a03b748affd809d5fa7278f5add37d9..9d8c57ba761983a8f8b11cae0df8ea22b4d07fc4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ all-debug: CFLAGS += $(DFLAGS)
 doc: $(DOCS)
 
 install: all
+       mkdir -p $(DESTDIR)$(bindir) && \
        for prog in $(PROGS); do \
                install $$prog $(DESTDIR)$(bindir); \
        done