2014-08-13 10:39:27 +01:00
|
|
|
API_INFO = $(MONO_PATH) $(RUNTIME) $(topdir)/class/lib/$(PROFILE)/mono-api-info.exe
|
2018-10-09 08:20:59 +00:00
|
|
|
API_DIFF = $(MONO_PATH) $(RUNTIME) $(topdir)/class/lib/$(PROFILE)/mono-api-diff.exe
|
2014-08-13 10:39:27 +01:00
|
|
|
TRANSFORM = $(MONO_PATH) $(RUNTIME) $(topdir)/tools/corcompare/transform.exe
|
|
|
|
|
|
|
|
OBJECTS = $(topdir)/build/corcompare/$(LIBRARY_NAME:.dll=.html)
|
|
|
|
|
|
|
|
corcompare: $(OBJECTS)
|
|
|
|
|
|
|
|
$(OBJECTS): $(patsubst $(topdir)/build/corcompare/%.html,%.src, $(OBJECTS))
|
|
|
|
|
|
|
|
.PRECIOUS: $(topdir)/build/corcompare/%.html
|
|
|
|
$(topdir)/build/corcompare/%.html: %.src
|
|
|
|
$(TRANSFORM) $< $(topdir)/build/corcompare-api.xsl source-name=$(notdir $<) > $@
|
|
|
|
|
|
|
|
.PRECIOUS: %.src
|
|
|
|
%.src: %.xml
|
|
|
|
$(API_DIFF) masterinfos/$(PROFILE)/$(notdir $<) $< > $@ || (rm -rf $@ && exit 1)
|
|
|
|
|
|
|
|
.PRECIOUS: %.xml
|
|
|
|
%.xml: $(topdir)/class/lib/$(PROFILE)/%.dll
|
|
|
|
$(API_INFO) $< > $@ || (rm -f $@ && exit 1)
|
|
|
|
|
|
|
|
CLEAN_FILES += $(topdir)/build/corcompare/$(LIBRARY_NAME:.dll=.html) $(LIBRARY_NAME:.dll=.src) $(LIBRARY_NAME:.dll=.xmlsrc)
|
|
|
|
|
|
|
|
|