Skip to content

Commit d1789ef

Browse files
authored
Merge pull request #202 from gasche/opam-docdir
install license, changes, readme in opam's docdir for `odig`
2 parents 2ef08e3 + b4430d3 commit d1789ef

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ detailed changelog below for details.
8585
- #172-175, #177: setting up Continuous Infrastructure (CI) testsuite checks
8686
(whitequark)
8787

88+
- #202: install license, changes and readme in opam's docdir for `odig`
89+
(Gabriel Scherer, request and review by Daniel Bünzli)
90+
8891
- "noautolink" tag for ocaml{c,opt}
8992
(Gabriel Scherer)
9093

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ install-lib-basics:
278278
$(CP) META src/signatures.mli $(INSTALL_LIBDIR)/ocamlbuild
279279

280280
install-lib-basics-opam:
281+
echo ' "opam"' >> ocamlbuild.install
281282
echo ' "META"' >> ocamlbuild.install
282283
echo ' "src/signatures.mli" {"signatures.mli"}' >> ocamlbuild.install
283284

@@ -334,6 +335,13 @@ install-man-opam:
334335
echo ']' >> ocamlbuild.install
335336
echo >> ocamlbuild.install
336337

338+
install-doc-opam:
339+
echo 'docdir: [' >> ocamlbuild.install
340+
echo ' "LICENSE"' >> ocamlbuild.install
341+
echo ' "Changes"' >> ocamlbuild.install
342+
echo ' "Readme.md"' >> ocamlbuild.install
343+
echo ']' >> ocamlbuild.install
344+
337345
uninstall-bin:
338346
rm $(BINDIR)/ocamlbuild
339347
rm $(BINDIR)/ocamlbuild.byte
@@ -385,6 +393,7 @@ ocamlbuild.install:
385393
$(MAKE) install-bin-opam
386394
$(MAKE) install-lib-opam
387395
$(MAKE) install-man-opam
396+
$(MAKE) install-doc-opam
388397

389398
check-if-preinstalled:
390399
ifeq ($(CHECK_IF_PREINSTALLED), true)

0 commit comments

Comments
 (0)