Do not add active plugins to the list of plugins when they are already in the list...
[geany-mirror.git] / makefile.win32
blob73c2ae1642de1f10dc2ad72f5250cd9c50bbc855
1 # Running make creates config.h then calls the sub makefiles.
3 # Other targets are:
4 #       deps: delete the dependencies so they are regenerated on next make
5 #       clean: clean all generated files
7 # localwin32.mk is an optional file to override make variables.
8 # Use localwin32.mk instead of editing variables as it is included in sub
9 # makefiles.
10 # localwin32.mk to set PREFIX instead of the default C:\libs
11 # For MSYS use localwin32.mk to set CP and RM.
12 # By default this will work in a Windows command prompt.
14 WINDRES = windres.exe
15 CC = gcc
16 CXX = g++
17 CP = copy
18 RM = del
19 MAKE = make
20 -include localwin32.mk
22 # Note: && is needed after cd because each line is executed in a different
23 # shell. (cd .. is just for clarity).
24 all: check-tools config.h
25         cd tagmanager/mio && $(MAKE) -f makefile.win32 && cd ../..
26         cd tagmanager && $(MAKE) -f makefile.win32 && cd ..
27         cd scintilla && $(MAKE) -f makefile.win32 && cd ..
28         cd plugins && $(MAKE) -f makefile.win32 && cd ..
29         cd src && $(MAKE) -f makefile.win32 && cd ..
31 # first check the required tools are installed
32 check-tools:
33         $(WINDRES) --version
34         $(CC) --version
35         $(CXX) --version
37 config.h: win32-config.h
38         $(CP) $< $@
40 deps:
41         -$(RM) tagmanager/mio/deps.mak tagmanager/deps.mak scintilla/deps.mak plugins/deps.mak src/deps.mak
43 # used by src/makefile.win32 to avoid del ../file which is an error
44 clean-local:
45         -$(RM) geany_private.res geany.exe
47 clean: deps
48         cd tagmanager/mio && $(MAKE) -f makefile.win32 clean && cd ../..
49         cd tagmanager && $(MAKE) -f makefile.win32 clean && cd ..
50         cd scintilla && $(MAKE) -f makefile.win32 clean && cd ..
51         cd plugins && $(MAKE) -f makefile.win32 clean && cd ..
52         cd src && $(MAKE) -f makefile.win32 clean && cd ..