2009-07-02 Jb Evain <jbevain@novell.com>
[mcs.git] / build / corcompare.make
blob4ad4cfc7dba0da2dd7d1b9f1f95167cc991861c1
1 API_INFO = $(MONO_PATH) $(RUNTIME) $(topdir)/class/lib/$(PROFILE)/mono-api-info.exe
2 API_DIFF = $(MONO_PATH) $(RUNTIME) $(topdir)/tools/corcompare/mono-api-diff.exe
3 TRANSFORM = $(MONO_PATH) $(RUNTIME) $(topdir)/tools/corcompare/transform.exe
5 OBJECTS = $(topdir)/build/corcompare/$(LIBRARY_NAME:.dll=.html)
7 corcompare: $(OBJECTS)
9 $(OBJECTS): $(patsubst $(topdir)/build/corcompare/%.html,%.src, $(OBJECTS))
11 .PRECIOUS: $(topdir)/build/corcompare/%.html
12 $(topdir)/build/corcompare/%.html: %.src
13 $(TRANSFORM) $< $(topdir)/build/corcompare-api.xsl source-name=$(notdir $<) > $@
15 .PRECIOUS: %.src
16 %.src: %.xml
17 $(API_DIFF) masterinfos/$(PROFILE)/$(notdir $<) $< > $@ || (rm -rf $@ && exit 1)
19 .PRECIOUS: %.xml
20 %.xml: $(topdir)/class/lib/$(PROFILE)/%.dll
21 $(API_INFO) $< > $@ || (rm -f $@ && exit 1)
23 CLEAN_FILES += $(topdir)/build/corcompare/$(LIBRARY_NAME:.dll=.html) $(LIBRARY_NAME:.dll=.src) $(LIBRARY_NAME:.dll=.xmlsrc)