Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
Convert from Jbuilder to Dune
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Apr 3, 2019
1 parent b502133 commit bda97b2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)

.PHONY: all
all:
jbuilder build @install
dune build

.PHONY: install
install:
jbuilder install $(INSTALL_ARGS)
dune install $(INSTALL_ARGS)

.PHONY: uninstall
uninstall:
jbuilder uninstall $(INSTALL_ARGS)
dune uninstall $(INSTALL_ARGS)

.PHONY: reinstall
reinstall:
Expand All @@ -19,5 +19,4 @@ reinstall:

.PHONY: clean
clean:
rm -rf _build *.install
find . -name .merlin -delete
dune clean
2 changes: 2 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(lang dune 1.0)
(name ppx_derivers)
4 changes: 2 additions & 2 deletions ppx_derivers.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ homepage: "https://github.com/ocaml-ppx/ppx_derivers"
bug-reports: "https://github.com/ocaml-ppx/ppx_derivers/issues"
dev-repo: "git://github.com/ocaml-ppx/ppx_derivers.git"
build: [
["jbuilder" "build" "-p" name "-j" jobs]
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"jbuilder" {>= "1.0+beta7"}
"dune" {build}
]
3 changes: 3 additions & 0 deletions src/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name ppx_derivers)
(public_name ppx_derivers))
3 changes: 0 additions & 3 deletions src/jbuild

This file was deleted.

0 comments on commit bda97b2

Please sign in to comment.