diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2012-05-30 01:06:29 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2012-05-30 01:17:58 +0400 |
commit | 63cd3b91ef39b92d3e2fd1d8a4d2d0a680ede2a1 (patch) | |
tree | 33aa7d53001363714d2f205f95fbb85e90fd494e /main/src | |
parent | 6a2005ce356a137c7917338bc369f3790c377538 (diff) |
[Build] Fix deps so Mac addins don't rebuild every time
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MacPlatform/Makefile.am | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/main/src/addins/MacPlatform/Makefile.am b/main/src/addins/MacPlatform/Makefile.am index 1779fdc381..d6b32352d7 100644 --- a/main/src/addins/MacPlatform/Makefile.am +++ b/main/src/addins/MacPlatform/Makefile.am @@ -53,20 +53,27 @@ FILES = \ RES = MacPlatform.addin.xml if ENABLE_MACPLATFORM -all: $(MONOMAC) $(MONOMAC).mdb $(ASSEMBLY) $(ASSEMBLY).mdb +all: $(ASSEMBLY) $(ASSEMBLY).mdb else all: endif -$(MONOMAC_SRC): - make -C $(top_srcdir)/external/monomac/src - -$(ASSEMBLY): $(MONOMAC_SRC) $(build_sources) $(build_resources) $(DEPS) +$(ASSEMBLY): $(MONOMAC) $(build_sources) $(build_resources) $(DEPS) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) -unsafe $(REFS) $(build_deps) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library $(ASSEMBLY).mdb: $(ASSEMBLY) $(MONOMAC).mdb +monomac-build: + make -C $(top_srcdir)/external/monomac/src + +monomac-clean: + make -C $(top_srcdir)/external/monomac/src clean + +$(MONOMAC_SRC): monomac-build + +$(MONOMAC_SRC).mdb: monomac-build + $(MONOMAC).mdb: $(MONOMAC_SRC).mdb mkdir -p $(ADDIN_BUILD) cp $< $@ @@ -80,9 +87,11 @@ assemblydir = $(MD_ADDIN_DIR)/MacPlatform assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb $(MONOMAC) $(MONOMAC).mdb endif +clean-local: monomac-clean + CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(MONOMAC) $(MONOMAC).mdb EXTRA_DIST = $(FILES) $(RES) -.PHONY: $(MONOMAC_SRC) +.PHONY: monomac-build monomac-clean include $(top_srcdir)/Makefile.include |