####################################################################
# The Harmony Project                                              #
# harmony@lists.seas.upenn.edu                                     #
####################################################################

# $Id: Makefile 1706 2006-05-22 20:17:32Z bcpierce $ 

TOP = ../..

DEMO1 = R1ORIG=SafariExample.plist  R2ORIG=empty.meta
DEMO2 = R1ORIG=MozillaExample.html  R2ORIG=empty.meta
DEMO3 = R1ORIG=MozillaExample.html  R2ORIG=empty.plist
DEMO4 = R1ORIG=SafariExample.plist R2ORIG=empty.html 

DEMOCMD = ./$(RESULT) $(HARMONYFLAGS) $(LENSPATH) -compress=false

include $(TOP)/Top.Makefile

RESULT = harmonize-bookmarks
SOURCES = moz2xml.mll xml2moz.mll harmonize-bookmarks.ml 
LIBS += harmony

all: makeharmonylib native-code

include $(OCAMLMAKEFILE)

test:: mozilla.fcl safari.fcl
	$(HARMONY) -check Mozilla -test-all
	$(HARMONY) -check Safari -test-all

tidy::
	rm -rf moz.xml moz.meta moz2.xml moz3.xml xml2moz xml2moz.ml moz2xml moz2xml.ml saf.xml saf.meta saf2.xml archive.meta archive2.meta moz2.meta saf2.meta 
	rm -rf temp*
	rm -rf .*.bak .*.tmp *.cmo *.cmi *.cmx ._d .harmonyar* ._bcdi $(RESULT) *.annot

