Skip to content

Commit c441d7f

Browse files
committed
Port to Dune
Signed-off-by: Christian Lindig <[email protected]>
1 parent f6d4da6 commit c441d7f

15 files changed

+1208
-86
lines changed

Makefile

+8-22
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,26 @@
44
# convenience during development
55
#
66

7-
JB = jbuilder
7+
DUNE = dune
88
POD2MAN = pod2man $(PODOPTS)
99
PODOPTS = --center="Christian Lindig" --name="lipsum" --release="2017"
1010

1111
all: lipsum.1
12-
$(JB) build
12+
$(DUNE) build -p lipsum
1313

1414
install:
15-
$(JB) install
15+
$(DUNE) install
16+
17+
profile:
18+
$(DUNE) build --profile=profile
1619

1720
clean:
18-
$(JB) clean
21+
$(DUNE) clean
1922

2023
man: lipsum.1
2124

2225
%:
23-
$(JB) build $@
26+
$(DUNE) build $@
2427

2528
%.1: %.pod
2629
$(POD2MAN) $< > $@
27-
28-
# OPAM - the targets below help to publish this code via opam.ocaml.org
29-
30-
NAME = lipsum
31-
VERSION = master
32-
TAG = $(VERSION)
33-
GITHUB = https://github.com/lindig/$(NAME)
34-
ZIP = $(GITHUB)/archive/$(TAG)/$(NAME)-$(TAG).zip
35-
OPAM = $(HOME)/Development/opam-repository/packages/$(NAME)/$(NAME).$(VERSION)
36-
37-
zip:
38-
curl -L -O $(ZIP)
39-
40-
lipsum.url:
41-
echo "archive: \"$(ZIP)\"" > $@
42-
echo "checksum: \"`curl -L $(ZIP)| md5 -q`\"" >> $@
43-

dune

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(env
2+
(profile
3+
(ocamlopt_flags (:standard -p))
4+
(flags (:standard)))
5+
(dev
6+
(flags (:standard)))
7+
(release
8+
(flags (:standard))))

dune-project

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(lang dune 1.4)

0 commit comments

Comments
 (0)