Skip to content

Commit

Permalink
Fix installing data files with MSYS (Windows makefiles)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jul 26, 2012
1 parent 14daf92 commit 9248820
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions makefile.win32
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
WINDRES = windres.exe
CC = gcc
CXX = g++
CP = copy /Y
CP_R = xcopy /S /Y
CP = copy /y
RM = del
MKDIR = mkdir
# $/ is used as a portable directory separator
Expand All @@ -27,7 +26,6 @@ DESTDIR = C:/Program Files/Geany

ifdef MSYS
CP = cp
CP_R = cp -r
RM = rm -f
/ = /
endif
Expand Down Expand Up @@ -70,4 +68,8 @@ install:
-$(MKDIR) "$(DESTDIR)/lib"
$(CP) plugins$/*.dll "$(DESTDIR)/lib"
-$(MKDIR) "$(DESTDIR)/data"
$(CP_R) data "$(DESTDIR)/data"
ifdef MSYS
cp -r data "$(DESTDIR)"
else
xcopy /s /y data "$(DESTDIR)/data"
endif

0 comments on commit 9248820

Please sign in to comment.