-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeremie Dimino
committed
Dec 15, 2016
1 parent
cd14d01
commit 2410cf2
Showing
20 changed files
with
107 additions
and
247 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
_build/ | ||
/setup.data | ||
/setup.log | ||
/*.exe | ||
/*.docdir | ||
/*.native | ||
/*.byte | ||
_build | ||
*.install | ||
|
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,68 +1,18 @@ | ||
# Generic Makefile for oasis project | ||
|
||
SETUP := setup.exe | ||
NAME := sexplib | ||
PREFIX ?= $(shell grep ^prefix= setup.data | cut -d\" -f 2) | ||
|
||
# Default rule | ||
default: build | ||
|
||
setup.exe: _oasis setup.ml | ||
ocamlfind ocamlopt -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup.ml || \ | ||
ocamlfind ocamlc -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup.ml || true | ||
for f in setup.*; do [ $$f = $@ -o $$f = setup.ml ] || rm -f $$f; done | ||
|
||
build: $(SETUP) setup.data | ||
./$(SETUP) -build $(BUILDFLAGS) | ||
$(MAKE) $(NAME).install | ||
|
||
doc: $(SETUP) setup.data build | ||
./$(SETUP) -doc $(DOCFLAGS) | ||
|
||
test: $(SETUP) setup.data build | ||
./$(SETUP) -test $(TESTFLAGS) | ||
|
||
all: $(SETUP) | ||
./$(SETUP) -all $(ALLFLAGS) | ||
$(MAKE) $(NAME).install | ||
|
||
$(NAME).install: install.ml setup.log setup.data | ||
ocaml -I "$(OCAML_TOPLEVEL_PATH)" install.ml | ||
default: | ||
jbuilder build-package $(NAME) | ||
|
||
install: $(NAME).install | ||
install: | ||
opam-installer -i --prefix $(PREFIX) $(NAME).install | ||
|
||
uninstall: $(NAME).install | ||
uninstall: | ||
opam-installer -u --prefix $(PREFIX) $(NAME).install | ||
|
||
reinstall: $(NAME).install | ||
opam-installer -u --prefix $(PREFIX) $(NAME).install &> /dev/null || true | ||
opam-installer -i --prefix $(PREFIX) $(NAME).install | ||
|
||
bin.tar.gz: $(NAME).install | ||
rm -rf _install | ||
mkdir _install | ||
opam-installer -i --prefix _install $(NAME).install | ||
tar czf bin.tar.gz -C _install . | ||
rm -rf _install | ||
|
||
bin.lzo: $(NAME).install | ||
rm -rf _install | ||
mkdir _install | ||
opam-installer -i --prefix _install $(NAME).install | ||
cd _install && lzop -1 -P -o ../bin.lzo `find . -type f` | ||
rm -rf _install | ||
|
||
clean: $(SETUP) | ||
./$(SETUP) -clean $(CLEANFLAGS) | ||
|
||
distclean: $(SETUP) | ||
./$(SETUP) -distclean $(DISTCLEANFLAGS) | ||
|
||
configure: $(SETUP) | ||
./$(SETUP) -configure $(CONFIGUREFLAGS) | ||
reinstall: uninstall reinstall | ||
|
||
setup.data: $(SETUP) | ||
./$(SETUP) -configure $(CONFIGUREFLAGS) | ||
clean: | ||
rm -rf _build | ||
|
||
.PHONY: default build doc test all install uninstall reinstall clean distclean configure | ||
.PHONY: default install uninstall reinstall clean |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
(library | ||
((name sexplib_num) | ||
(public_name sexplib.num) | ||
(libraries (nums sexplib)) | ||
(preprocess ((no_preprocessing All))))) | ||
(libraries (num sexplib)) | ||
(preprocess no_preprocessing))) |
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
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 +1 @@ | ||
include Base0.Sexplib.Conv_error | ||
include Base.Exported_for_specific_uses.Sexplib.Conv_error |
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
Oops, something went wrong.