Skip to content

Commit

Permalink
update Makefile for release rules
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Jun 29, 2017
1 parent 1ff85f1 commit bf8371f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
.PHONY: all clean

all:
jbuilder build @install
.PHONY: build clean test

clean:
rm -rf _build *.install
build:
jbuilder build @install

test:
jbuilder runtest

install:
jbuilder install

uninstall:
jbuilder uninstall

clean:
rm -rf _build

REPO=../../mirage/mirage-dev
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)/$*/
rm -f $(PACKAGES)/$*/$*.opam
cd $(PACKAGES) && git add $*

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


0 comments on commit bf8371f

Please sign in to comment.