]> arthur.barton.de Git - ax-unix.git/blobdiff - lib/ax/Makefile
Makefile's: Only create non-existing directories
[ax-unix.git] / lib / ax / Makefile
index c7e80354e7e3c43b24be790fd04aac2724d9a808..7615865f916661e7121c7c6dc1db8d09bab4394f 100644 (file)
@@ -13,8 +13,9 @@ ALL = README ax-common.sh
 include ../../Makefile.ax
 
 install-local: ax-common.sh
-       install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
-        "$(DESTDIR)$(PREFIX)/lib/ax"
+       [ -d "$(DESTDIR)$(PREFIX)/lib/ax" ] || \
+               install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
+                "$(DESTDIR)$(PREFIX)/lib/ax"
        install -p -o "$(USER)" -g "$(GROUP)" -m 644 README \
         "$(DESTDIR)$(PREFIX)/lib/ax/README"
        install -p -o "$(USER)" -g "$(GROUP)" -m 644 ax-common.sh \