2012-06-27 14:26:39 +01:00
|
|
|
# See http://www.geany.org/Support/BuildingOnWin32
|
2006-07-28 12:29:10 +00:00
|
|
|
# Running make creates config.h then calls the sub makefiles.
|
|
|
|
#
|
|
|
|
# Other targets are:
|
|
|
|
# deps: delete the dependencies so they are regenerated on next make
|
|
|
|
# clean: clean all generated files
|
2012-06-27 14:26:39 +01:00
|
|
|
# install: install to DESTDIR
|
2006-07-28 12:29:10 +00:00
|
|
|
#
|
|
|
|
# localwin32.mk is an optional file to override make variables.
|
|
|
|
# Use localwin32.mk instead of editing variables as it is included in sub
|
|
|
|
# makefiles.
|
2012-07-04 17:13:14 +01:00
|
|
|
# For MSYS set MSYS=1.
|
2012-06-27 14:26:39 +01:00
|
|
|
# By default this should work in a Windows command prompt (cmd.exe).
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
WINDRES = windres.exe
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
2012-07-26 13:27:58 +01:00
|
|
|
CP = copy /y
|
2006-07-28 12:29:10 +00:00
|
|
|
RM = del
|
2012-06-27 14:26:39 +01:00
|
|
|
MKDIR = mkdir
|
2012-07-04 17:13:14 +01:00
|
|
|
# $/ is used as a portable directory separator
|
2012-06-27 16:33:34 +01:00
|
|
|
# strip is used to prevent line wrap
|
2012-07-04 17:13:14 +01:00
|
|
|
/ := $(strip \)
|
2012-06-27 14:26:39 +01:00
|
|
|
DESTDIR = C:/Program Files/Geany
|
2006-07-28 12:29:10 +00:00
|
|
|
-include localwin32.mk
|
|
|
|
|
2012-07-04 17:13:14 +01:00
|
|
|
ifdef MSYS
|
|
|
|
CP = cp
|
|
|
|
RM = rm -f
|
|
|
|
/ = /
|
|
|
|
endif
|
|
|
|
|
2011-09-19 14:19:28 +00:00
|
|
|
all: config.h
|
2012-07-04 12:15:53 +01:00
|
|
|
$(MAKE) -C tagmanager/ctags -f makefile.win32
|
2012-06-26 21:39:56 +01:00
|
|
|
$(MAKE) -C tagmanager/mio -f makefile.win32
|
2012-07-04 12:15:53 +01:00
|
|
|
$(MAKE) -C tagmanager/src -f makefile.win32
|
2012-06-26 21:39:56 +01:00
|
|
|
$(MAKE) -C scintilla -f makefile.win32
|
|
|
|
$(MAKE) -C plugins -f makefile.win32
|
|
|
|
$(MAKE) -C src -f makefile.win32
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
config.h: win32-config.h
|
|
|
|
$(CP) $< $@
|
|
|
|
|
|
|
|
deps:
|
2012-05-08 22:52:27 +02:00
|
|
|
-$(RM) tagmanager/ctags/deps.mak tagmanager/mio/deps.mak tagmanager/src/deps.mak scintilla/deps.mak plugins/deps.mak src/deps.mak
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
# used by src/makefile.win32 to avoid del ../file which is an error
|
|
|
|
clean-local:
|
2006-09-22 12:09:53 +00:00
|
|
|
-$(RM) geany_private.res geany.exe
|
2006-07-28 12:29:10 +00:00
|
|
|
|
2006-09-22 12:09:53 +00:00
|
|
|
clean: deps
|
2012-07-04 12:15:53 +01:00
|
|
|
$(MAKE) -C tagmanager/ctags -f makefile.win32 clean
|
2012-06-26 21:39:56 +01:00
|
|
|
$(MAKE) -C tagmanager/mio -f makefile.win32 clean
|
2012-07-04 12:15:53 +01:00
|
|
|
$(MAKE) -C tagmanager/src -f makefile.win32 clean
|
2012-06-26 21:39:56 +01:00
|
|
|
$(MAKE) -C scintilla -f makefile.win32 clean
|
|
|
|
$(MAKE) -C plugins -f makefile.win32 clean
|
|
|
|
$(MAKE) -C src -f makefile.win32 clean
|
2012-03-13 13:48:15 +00:00
|
|
|
|
2012-07-04 16:44:43 +01:00
|
|
|
.PHONY: all clean clean-local deps install
|
2012-03-13 13:48:15 +00:00
|
|
|
|
2012-06-27 14:26:39 +01:00
|
|
|
# likely requires admin privileges
|
|
|
|
# mkdir output is ignored in case dir exists
|
2012-06-27 16:33:34 +01:00
|
|
|
# 'copy' seems to only accept / in the destination
|
2012-03-13 13:48:15 +00:00
|
|
|
install:
|
2012-06-27 14:26:39 +01:00
|
|
|
-$(MKDIR) "$(DESTDIR)"
|
2012-06-27 16:33:34 +01:00
|
|
|
-$(MKDIR) "$(DESTDIR)/bin"
|
|
|
|
$(CP) geany.exe "$(DESTDIR)/bin"
|
|
|
|
-$(MKDIR) "$(DESTDIR)/lib"
|
2012-07-04 17:13:14 +01:00
|
|
|
$(CP) plugins$/*.dll "$(DESTDIR)/lib"
|
2012-06-27 16:33:34 +01:00
|
|
|
-$(MKDIR) "$(DESTDIR)/data"
|
2012-07-26 13:27:58 +01:00
|
|
|
ifdef MSYS
|
|
|
|
cp -r data "$(DESTDIR)"
|
|
|
|
else
|
|
|
|
xcopy /s /y data "$(DESTDIR)/data"
|
|
|
|
endif
|