aboutsummaryrefslogtreecommitdiff
path: root/bin/dune
blob: d57f39cfaf47fad9842fd980e6bcd730fa7b63bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(executable
 (public_name stitch)
 (package stitch)
 
 (name main)
 (libraries
  stitch
  unix
  cmdliner
  str
  notty
  notty.unix
  shexp.process
  lambda-term))

(env 
   (release-static 
    (ocamlc_flags (-g))
    (ocamlopt_flags (-g))
    (flags (:standard -cclib -static -cclib -no-pie -w -40))))
; Rule to generate a man page for stitch
(rule
  (target stitch.1)
  (action (with-stdout-to %{target} (run stitch --help=groff)))
)

(install
 (section  man)
 (files    stitch.1)
 (package  stitch)
)