Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm trailing whitespaces and added doc target in Makefile #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LIBDIR=`ocamlc -where`
STUBLIBDIR=$(LIBDIR)/stublibs


all: libcamldbm.$(A) dbm.cma dbm.cmxa dbm.cmxs
all: libcamldbm.$(A) dbm.cma dbm.cmxa dbm.cmxs

dbm.cma: dbm.cmo
$(OCAMLMKLIB) -o dbm -oc camldbm -linkall dbm.cmo $(DBM_LINK)
Expand Down Expand Up @@ -57,7 +57,7 @@ depend:
$(OCAMLDEP) *.ml *.mli > .depend

install::
if test -f dllcamldbm.$(SO); then mkdir $(STUBLIBDIR) || echo Ok; cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi
if test -f dllcamldbm.$(SO); then mkdir $(STUBLIBDIR) || echo Ok; cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi
cp libcamldbm.$(A) $(LIBDIR)/
cd $(LIBDIR) && ranlib libcamldbm.$(A)
cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/
Expand All @@ -83,6 +83,9 @@ test: testdbm.byte testdbm.opt
rm -f testdatabase.*
./testdbm.opt
rm -f testdatabase.*


doc::
mkdir -p doc
ocamldoc -d doc -html dbm.mli

include .depend