Commit 13265eec authored by POTTIER Francois's avatar POTTIER Francois

Cosmetic Makefile improvements (should make no difference).

parent ff6692e4
......@@ -170,23 +170,22 @@ install:
mkdir -p $(libdir)
install -m 644 $(MLYLIB) $(libdir)
@if `$(BUILDDIR)/menhir.$(TARGET) --suggest-ocamlfind` ; then \
echo Installing MenhirLib via ocamlfind. ; \
echo 'Installing MenhirLib via ocamlfind.' ; \
ocamlfind install menhirLib src/META $(patsubst %,$(BUILDDIR)/%,$(MENHIRLIB)) ; \
else \
echo Installing MenhirLib manually. ; \
echo 'Installing MenhirLib manually.' ; \
install -m 644 $(patsubst %,$(BUILDDIR)/%,$(MENHIRLIB)) $(libdir) ; \
fi
# Install the documentation, if it has been built.
if [ -f manual.pdf ] ; then \
mkdir -p $(docdir) ; \
mkdir -p $(mandir) ; \
cp -r $(DOCS) $(docdir) ; \
mkdir -p $(docdir) $(mandir) && \
cp -r $(DOCS) $(docdir) && \
cp -r $(MANS) $(mandir) ; \
fi
uninstall:
@if `$(bindir)/$(MENHIREXE) --suggest-ocamlfind` ; then \
echo Un-installing MenhirLib via ocamlfind. ; \
echo 'Un-installing MenhirLib via ocamlfind.' ; \
ocamlfind remove menhirLib ; \
fi
rm -rf $(bindir)/$(MENHIREXE)
......
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