Skip to content

Commit

Permalink
Add Makefile rule for making releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Leonard committed Jan 9, 2018
1 parent e332d24 commit 45c3124
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ benchmark:

doc:
jbuilder build @doc

REPO=../opam-repository
PACKAGES=$(REPO)/packages
# until we have https://github.com/ocaml/opam-publish/issues/38
pkg-%:
topkg opam pkg -n $*
mkdir -p $(PACKAGES)/$*
cp -r _build/$*.* $(PACKAGES)/$*/
cd $(PACKAGES) && git add $*

PKGS=$(basename $(wildcard *.opam))
opam-pkg:
$(MAKE) $(PKGS:%=pkg-%)

0 comments on commit 45c3124

Please sign in to comment.