Fix 'make distcheck'. master
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 27 Sep 2014 18:57:02 +0000 (21:57 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 27 Sep 2014 18:57:02 +0000 (21:57 +0300)
Makefile.am

index c0a33a0..f66791e 100644 (file)
@@ -1,15 +1,12 @@
-EXTRA_DIST=AUTHORS COPYING
-
-dist-hook:
-       cp -raf nuoveXT2 $(distdir)/nuoveXT2
-       rm -rf `find $(distdir)/nuoveXT2 -name '*.svn'`
+EXTRA_DIST = AUTHORS COPYING nuoveXT2
 
 uninstall-hook:
        rm -rf $(DESTDIR)$(datadir)/icons/nuoveXT2
 
 install-data-hook:
        $(mkdir_p) $(DESTDIR)$(datadir)/icons
-       cp -raf --no-preserve=ownership nuoveXT2 $(DESTDIR)$(datadir)/icons
+       cp -raf --no-preserve=ownership $(top_srcdir)/nuoveXT2 $(DESTDIR)$(datadir)/icons
+       chmod u+w $(DESTDIR)$(datadir)/icons/nuoveXT2{,/*,/*/*}
        $(LN_S) -f user-desktop.png $(DESTDIR)$(datadir)/icons/nuoveXT2/48x48/places/desktop.png
        $(LN_S) -f user-desktop.png $(DESTDIR)$(datadir)/icons/nuoveXT2/48x48/places/gnome-fs-desktop.png
        $(LN_S) -f folder-saved-search.png $(DESTDIR)$(datadir)/icons/nuoveXT2/48x48/places/application-x-gnome-saved-search.png