From cc05157ae9323ad9ed2333f551586fe7d087748f Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 29 Apr 2015 20:32:54 +0000 Subject: [PATCH] Fix install when datadir is not named "share". git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2119 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 51607b4a..492cb90a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -614,7 +614,7 @@ install : $(BIN) $(CP) ../share/grafx2/gfx2.gif $(DESTDIR)$(datadir)/grafx2/ $(CP) ../share/grafx2/fonts/* $(DESTDIR)$(datadir)/grafx2/fonts/ $(CP) $(SKIN_FILES) $(DESTDIR)$(datadir)/grafx2/skins/ - for f in $(SCRIPT_FILES); do cp "$$f" "$(DESTDIR)$(bindir)/$$f" ; done + for f in $(SCRIPT_FILES:../share/%=%); do cp "../share/$$f" "$(DESTDIR)$(datadir)/$$f" ; done # Icon and desktop file for debian $(CP) ../misc/unix/grafx2.desktop $(DESTDIR)$(datadir)/applications/ $(CP) ../misc/unix/grafx2.xpm $(DESTDIR)$(pixmapdir)