91a7a55
commit 1e12605eac293b12809ca2933622acc54515c237
91a7a55
Author: Nils Philippsen <nils@redhat.com>
91a7a55
Date:   Mon Dec 28 17:00:25 2009 +0100
91a7a55
91a7a55
    patch: lockdir
91a7a55
    
91a7a55
    Squashed commit of the following:
91a7a55
    
91a7a55
    commit 7d26ebc2c0c0c8a8e3254834a700951b49648eeb
91a7a55
    Author: Nils Philippsen <nils@redhat.com>
91a7a55
    Date:   Mon Dec 28 16:58:36 2009 +0100
91a7a55
    
91a7a55
        improve install-lockpath target
91a7a55
    
91a7a55
        make robust against problems with setting group on sane lock dir
91a7a55
91a7a55
diff --git a/backend/Makefile.am b/backend/Makefile.am
91a7a55
index 5165423..3c22cd4 100644
91a7a55
--- a/backend/Makefile.am
91a7a55
+++ b/backend/Makefile.am
91a7a55
@@ -137,7 +137,8 @@ install-firmware-path:
91a7a55
 	  done
91a7a55
 
91a7a55
 install-lockpath:
91a7a55
-	$(mkinstalldirs) -m 775 -g $(LOCKPATH_GROUP) $(DESTDIR)$(locksanedir)
91a7a55
+	$(mkinstalldirs) -m 775 -g $(LOCKPATH_GROUP) $(DESTDIR)$(locksanedir) || \
91a7a55
+		$(mkinstalldirs) -m 775 $(DESTDIR)$(locksanedir)
91a7a55
 
91a7a55
 uninstall-hook:
91a7a55
 	rm -rf $(DESTDIR)$(libdir)/sane $(DESTDIR)$(configdir) $(DESTDIR)$(locksanedir)