Commit 2bf4d60d authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2004-06-14 22:09:46 by afrisch] Empty log message

Original author: afrisch
Date: 2004-06-14 22:09:46+00:00
parent c7ffe2b2
......@@ -93,7 +93,7 @@ INSTALL := $(shell which install)
all: cduce dtd2cduce validate
ifneq ($(ML_INTERFACE), false)
all: cDuce_all.$(EXTENSION_LIB)
all: cdml.$(EXTENSION_LIB)
endif
install: all
......@@ -104,6 +104,11 @@ install: all
$(INSTALL) -m644 doc/dtd2cduce.1 $(MANDIR)/man1/
$(INSTALL) -m644 doc/validate.1 $(MANDIR)/man1/
ifneq ($(ML_INTERFACE), false)
install_cdml:
ocamlfind install cduce META cdml.$(EXTENSION_LIB) cdo2cmo/cdml.cmi cDuce_all.cmi oCaml_all.$(EXTENSION_LIB) oCaml_all.cmi
endif
uninstall:
rm $(BINDIR)/cduce$(EXE) $(BINDIR)/dtd2cduce$(EXE) $(BINDIR)/validate$(EXE)
rm $(MANDIR)/man1/cduce.1 $(MANDIR)/man1/dtd2cduce.1 $(MANDIR)/man1/validate.1
......@@ -196,14 +201,17 @@ cduce_packed: cduce_packed.$(EXTENSION)
$(LINK) $(INCLUDES) -o $@ $(ML_LIB) $^ $(EXTRA_LINK_OPTS)
cDuce_all.$(EXTENSION_LIB): $(OBJECTS:.cmo=.$(EXTENSION))
cdml.$(EXTENSION_LIB): $(OBJECTS:.cmo=.$(EXTENSION))
echo 'version="$(VERSION)"' > META
echo 'requires="$(PACKAGES) camlp4.gramlib"' >> META
echo 'description="Runtime support for CDuce"' >> META
echo 'archive(byte)="oCaml_all.cma,cdml.cma"' >> META
echo 'archive(native)="oCaml_all.cmxa,cdml.cmxa"' >> META
$(COMPILE) -o cDuce_all.$(EXTENSION) -pack $^
$(LINK) -a -o $@ cDuce_all.$(EXTENSION)
$(COMPILE) -c cdo2cmo/cdml.mli
$(COMPILE) -c -o cdml.$(EXTENSION) cdo2cmo/cdml.ml
$(LINK) -a -o cdo2cmo/cdml.$(EXTENSION_LIB) \
oCaml_all.$(EXTENSION_LIB) \
cDuce_all.$(EXTENSION_LIB) \
$(COMPILE) -c cdo2cmo/cdml.ml
$(COMPILE) -a -o cdml.$(EXTENSION_LIB) \
cDuce_all.$(EXTENSION) \
cdo2cmo/cdml.$(EXTENSION)
oCaml_all.$(EXTENSION_LIB):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment