1 # See http://www.geany.org/Support/BuildingOnWin32
2 # Running make creates config.h then calls the sub makefiles.
5 # clean: clean all generated files
6 # install: install to DESTDIR
8 # localwin32.mk is an optional file to override make variables.
9 # Use localwin32.mk instead of editing variables as it is included in sub
11 # For MSYS set MSYS=1.
12 # By default this should work in a Windows command prompt (cmd.exe).
20 # $/ is used as a portable directory separator
21 # strip is used to prevent line wrap
23 DESTDIR = C:/Program Files/Geany
24 -include localwin32.mk
33 $(MAKE) -C tagmanager/ctags -f makefile.win32
34 $(MAKE) -C tagmanager/mio -f makefile.win32
35 $(MAKE) -C tagmanager/src -f makefile.win32
36 $(MAKE) -C scintilla -f makefile.win32
37 $(MAKE) -C plugins -f makefile.win32
38 $(MAKE) -C src -f makefile.win32
40 config.h: win32-config.h
43 # used by src/makefile.win32 to avoid del ../file which is an error
45 -$(RM) geany_private.res geany.exe
48 $(MAKE) -C tagmanager/ctags -f makefile.win32 clean
49 $(MAKE) -C tagmanager/mio -f makefile.win32 clean
50 $(MAKE) -C tagmanager/src -f makefile.win32 clean
51 $(MAKE) -C scintilla -f makefile.win32 clean
52 $(MAKE) -C plugins -f makefile.win32 clean
53 $(MAKE) -C src -f makefile.win32 clean
55 .PHONY: all clean clean-local install
57 # likely requires admin privileges
58 # mkdir output is ignored in case dir exists
59 # 'copy' seems to only accept / in the destination
61 -$(MKDIR) "$(DESTDIR)"
62 -$(MKDIR) "$(DESTDIR)/bin"
63 $(CP) geany.exe "$(DESTDIR)/bin"
64 -$(MKDIR) "$(DESTDIR)/lib"
65 $(CP) plugins$/*.dll "$(DESTDIR)/lib"
66 -$(MKDIR) "$(DESTDIR)/data"
68 cp -r data "$(DESTDIR)"
70 xcopy /s /y data "$(DESTDIR)/data"