forked from mirage/ocaml-uri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-warnings' of https://github.com/vbmithr/ocaml-uri i…
…nto gasche-silence-warnings
- Loading branch information
Showing
3 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,48 @@ | ||
.PHONY: all clean | ||
.PHONY: build clean test | ||
|
||
all: | ||
jbuilder build | ||
build: | ||
jbuilder build @install --dev | ||
|
||
test: | ||
jbuilder runtest | ||
|
||
install: | ||
jbuilder install | ||
|
||
uninstall: | ||
jbuilder uninstall | ||
|
||
clean: | ||
rm -rf _build *.install lib/uri_services.ml lib/uri_services_full.ml | ||
jbuilder clean | ||
|
||
doc: | ||
jbuilder build @doc | ||
|
||
publish-doc: doc | ||
rm -rf .gh-pages | ||
git clone `git config --get remote.origin.url` .gh-pages --reference . | ||
git -C .gh-pages checkout --orphan gh-pages | ||
git -C .gh-pages reset | ||
git -C .gh-pages clean -dxf | ||
cp -r _build/default/_doc/* .gh-pages/ | ||
git -C .gh-pages add . | ||
git -C .gh-pages commit -m "Update Pages" | ||
git -C .gh-pages push origin gh-pages -f | ||
rm -rf .gh-pages | ||
|
||
test-all: | ||
sh ./.docker-run.sh | ||
|
||
REPO=../../mirage/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-%) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters