Skip to content
Permalink
Browse files

Defined the initial program binaries.

  • Loading branch information...
artob committed Apr 9, 2018
1 parent 138a616 commit 520584b5713739a2498c9442d5d544a4a77cfe19
Showing with 31 additions and 15 deletions.
  1. +3 −0 .gitignore
  2. +10 −4 Makefile
  3. +2 −1 bin/.gitignore
  4. +3 −0 bin/describe.ml
  5. +0 −3 bin/dry.ml
  6. +3 −0 bin/export.ml
  7. +4 −3 bin/jbuild
  8. +2 −2 src/jbuild
  9. +1 −1 test/jbuild
  10. +3 −1 test/test.ml
@@ -10,3 +10,6 @@
# Dune artifacts
.merlin
_build/

# DRYlib for OCaml
lib
@@ -6,17 +6,23 @@ VERSION := $(shell cat VERSION)

SOURCES :=

TARGETS := bin/dry
TARGETS := bin/describe bin/export

%.html: %.rst
$(PANDOC) -o $@ -t html5 -s $<

all: build

_build/default/bin/dry.exe:
$(DUNE) build bin/dry.exe
_build/default/bin/describe.exe:
$(DUNE) build bin/describe.exe

bin/dry: _build/default/bin/dry.exe
_build/default/bin/export.exe:
$(DUNE) build bin/export.exe

bin/describe: _build/default/bin/describe.exe
ln $< $@

bin/export: _build/default/bin/export.exe
ln $< $@

build: $(TARGETS)
@@ -1,2 +1,3 @@
# Program binaries
dry
describe
export
@@ -0,0 +1,3 @@
(* This is free and unencumbered software released into the public domain. *)

print_endline (String.concat " " ["dry-describe"; "release"; Cli.Version.string])

This file was deleted.

@@ -0,0 +1,3 @@
(* This is free and unencumbered software released into the public domain. *)

print_endline (String.concat " " ["dry-export"; "release"; Cli.Version.string])
@@ -1,5 +1,6 @@
(jbuild_version 1)

(executable
((name dry)
(libraries (version cmdliner))))
(executables
((names (describe export))
;(public_names (dry-describe dry-export))
(libraries (cli dry cmdliner))))
@@ -1,5 +1,5 @@
(jbuild_version 1)

(library
((name version)
(synopsis "Version metadata")))
((name cli)
(synopsis "Command-line interface (CLI)")))
@@ -2,7 +2,7 @@

(executable
((name test)
(libraries (version))))
(libraries (cli dry))))

(alias
((name runtest)
@@ -1,3 +1,5 @@
(* This is free and unencumbered software released into the public domain. *)

let () = assert (Version.string = "0.0.0")
let () = assert (Cli.Version.string = "0.0.0")

let () = assert (Dry.Version.string = "0.0.0")

0 comments on commit 520584b

Please sign in to comment.
You can’t perform that action at this time.