Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (63 sloc) 1.84 KB
# See
# Running make creates config.h then calls the sub makefiles.
# Other targets are:
# clean: clean all generated files
# install: install to DESTDIR
# is an optional file to override make variables.
# Use instead of editing variables as it is included in sub
# makefiles.
# For MSYS set MSYS=1.
# By default this should work in a Windows command prompt (cmd.exe).
WINDRES = windres.exe
CC = gcc
CXX = g++
CP = copy /y
RM = del
MKDIR = mkdir
# $/ is used as a portable directory separator
# strip is used to prevent line wrap
/ := $(strip \)
DESTDIR = C:/Program Files/Geany
ifdef MSYS
CP = cp
RM = rm -f
/ = /
all: config.h
$(MAKE) -C tagmanager/ctags -f makefile.win32
$(MAKE) -C tagmanager/mio -f makefile.win32
$(MAKE) -C tagmanager/src -f makefile.win32
$(MAKE) -C scintilla -f makefile.win32
$(MAKE) -C plugins -f makefile.win32
$(MAKE) -C src -f makefile.win32
config.h: win32-config.h
$(CP) $< $@
# used by src/makefile.win32 to avoid del ../file which is an error
-$(RM) geany_private.res geany.exe
$(MAKE) -C tagmanager/ctags -f makefile.win32 clean
$(MAKE) -C tagmanager/mio -f makefile.win32 clean
$(MAKE) -C tagmanager/src -f makefile.win32 clean
$(MAKE) -C scintilla -f makefile.win32 clean
$(MAKE) -C plugins -f makefile.win32 clean
$(MAKE) -C src -f makefile.win32 clean
.PHONY: all clean clean-local install
# likely requires admin privileges
# mkdir output is ignored in case dir exists
# 'copy' seems to only accept / in the destination
-$(MKDIR) "$(DESTDIR)/bin"
$(CP) geany.exe "$(DESTDIR)/bin"
-$(MKDIR) "$(DESTDIR)/lib"
$(CP) plugins$/*.dll "$(DESTDIR)/lib"
-$(MKDIR) "$(DESTDIR)/data"
ifdef MSYS
cp -r data "$(DESTDIR)"
xcopy /s /y data "$(DESTDIR)/data"
Something went wrong with that request. Please try again.