Skip to content

Commit

Permalink
Add Makefile for convenience
Browse files Browse the repository at this point in the history
Add a Makefile with targets that are useful for development like "all"
and "format". Use that to normalise the format of the opam file.

Signed-off-by: Christian Lindig <[email protected]>
  • Loading branch information
lindig committed Jan 11, 2022
1 parent b51a6db commit cae205e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
break-separators=before
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This Makefile is not called from Opam but only used for
# convenience during development
#

DUNE = dune

.PHONY: all install test clean uninstall format

all:
$(DUNE) build

install: all
$(DUNE) install hello

uninstall:
$(DUNE) uninstall

test:
$(DUNE) runtest

clean:
$(DUNE) clean

utop:
$(DUNE) utop

format:
$(DUNE) build --auto-promote @fmt
opam lint --normalise bisect-summary.opam > bisect-summary.tmp && mv bisect-summary.tmp bisect-summary.opam
git ls-files '**/*.[ch]' | xargs -n1 indent -nut -i8

0 comments on commit cae205e

Please sign in to comment.