]> git.sur5r.net Git - i3/i3/commitdiff
Don’t override /etc/i3/config if it already exists
authorMichael Stapelberg <michael+x200@stapelberg.de>
Fri, 6 Mar 2009 15:56:04 +0000 (16:56 +0100)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Fri, 6 Mar 2009 15:56:04 +0000 (16:56 +0100)
Makefile

index eb806d961088fb31fe70a115f1b137410133d513..e7477f5d5149380e17f26e02c545c69fc3f00f82 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ install: all
        $(INSTALL) -d -m 0755 $(DESTDIR)/usr/bin
        $(INSTALL) -d -m 0755 $(DESTDIR)/etc/i3
        $(INSTALL) -m 0755 i3 $(DESTDIR)/usr/bin/
-       $(INSTALL) -m 0644 i3.config $(DESTDIR)/etc/i3/config
+       test -e $(DESTDIR)/etc/i3/config || $(INSTALL) -m 0644 i3.config $(DESTDIR)/etc/i3/config
 
 clean:
        rm -f src/*.o