changeset 18083:b069afd2a0de

Simplify mkdir calls.
author diego
date Thu, 13 Apr 2006 16:49:56 +0000
parents 0aa3fef68422
children 6a56ae7837b1
files drivers/Makefile libdha/Makefile libdha/kernelhelper/Makefile
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/Makefile	Thu Apr 13 10:36:17 2006 +0000
+++ b/drivers/Makefile	Thu Apr 13 16:49:56 2006 +0000
@@ -38,7 +38,7 @@
 	$(CC) -O $(INCLUDES) -o $@ $@.c
 
 install: mga_vid.o
-	if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
+	-mkdir -p $(MDIR)
 ifneq (,$(findstring 2.6, $(VERSION)))
 	install -m 644 mga_vid.ko $(MDIR)/mga_vid.ko
 else
--- a/libdha/Makefile	Thu Apr 13 10:36:17 2006 +0000
+++ b/libdha/Makefile	Thu Apr 13 16:49:56 2006 +0000
@@ -82,7 +82,7 @@
 	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
 
 install:
-	mkdir -p $(LIBDIR)
+	-mkdir -p $(LIBDIR)
 	install -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME)
 	rm -f $(LIBDIR)/libdha.so
 	ln -sf $(LIBNAME) $(LIBDIR)/$(SHORTNAME)
--- a/libdha/kernelhelper/Makefile	Thu Apr 13 10:36:17 2006 +0000
+++ b/libdha/kernelhelper/Makefile	Thu Apr 13 16:49:56 2006 +0000
@@ -13,7 +13,7 @@
 	$(CC) -O $(INCLUDES) -o $@ $@.c
 
 install: dhahelper.o
-	if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
+	-mkdir -p $(MDIR)
 	install -m 644 dhahelper.o $(MDIR)/dhahelper.o
 	depmod -a