switching to oasis, old Makefile still available for now
This commit is contained in:
parent
506730c8a0
commit
cca9c01c57
6
.gitignore
vendored
6
.gitignore
vendored
@ -3,5 +3,11 @@
|
|||||||
*.cmx
|
*.cmx
|
||||||
*~
|
*~
|
||||||
*.o
|
*.o
|
||||||
|
*.native
|
||||||
|
setup.*
|
||||||
|
configure
|
||||||
|
AUTHORS.txt
|
||||||
|
INSTALL.txt
|
||||||
logarion
|
logarion
|
||||||
_build
|
_build
|
||||||
|
ymd/
|
54
Makefile
54
Makefile
@ -1,33 +1,41 @@
|
|||||||
OCB_FLAGS = -use-ocamlfind -I src # -I lib
|
# OASIS_START
|
||||||
OCB = ocamlbuild $(OCB_FLAGS)
|
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
|
||||||
PKGS = toml,uuidm,omd,str,batteries,lens,lwt,lwt.unix,ptime,ptime.clock.os,re.str,lens.ppx_deriving
|
|
||||||
WEB_PKGS = $(PKGS),opium.unix,tyxml,mustache
|
|
||||||
CMD_PKGS = $(PKGS),cmdliner
|
|
||||||
|
|
||||||
all: cmd web
|
SETUP = ocaml setup.ml
|
||||||
|
|
||||||
dirs:
|
build: setup.data
|
||||||
mkdir -p ymd/uuid ymd/title
|
$(SETUP) -build $(BUILDFLAGS)
|
||||||
|
|
||||||
web:
|
doc: setup.data build
|
||||||
$(OCB) web.native -pkgs $(WEB_PKGS)
|
$(SETUP) -doc $(DOCFLAGS)
|
||||||
mv web.native logarion-web
|
|
||||||
|
|
||||||
cmd:
|
test: setup.data build
|
||||||
$(OCB) command.native -pkg $(CMD_PKGS)
|
$(SETUP) -test $(TESTFLAGS)
|
||||||
mv command.native logarion
|
|
||||||
|
|
||||||
style:
|
all:
|
||||||
sassc share/sass/main.sass > share/static/main.css
|
$(SETUP) -all $(ALLFLAGS)
|
||||||
|
|
||||||
doc_html:
|
install: setup.data
|
||||||
$(OCB) doc/logarion.docdir/index.html -pkgs $(PKGS)
|
$(SETUP) -install $(INSTALLFLAGS)
|
||||||
|
|
||||||
opam.dependencies:
|
uninstall: setup.data
|
||||||
opam install toml uuidm omd batteries lens lwt ptime ptime re lens opium tyxml mustache cmdliner
|
$(SETUP) -uninstall $(UNINSTALLFLAGS)
|
||||||
|
|
||||||
|
reinstall: setup.data
|
||||||
|
$(SETUP) -reinstall $(REINSTALLFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(OCB) -clean
|
$(SETUP) -clean $(CLEANFLAGS)
|
||||||
rm -f src/*.{cmx,cmi,o} *.{cmx,cmi,o}
|
|
||||||
|
|
||||||
.PHONY: web doc
|
distclean:
|
||||||
|
$(SETUP) -distclean $(DISTCLEANFLAGS)
|
||||||
|
|
||||||
|
setup.data:
|
||||||
|
$(SETUP) -configure $(CONFIGUREFLAGS)
|
||||||
|
|
||||||
|
configure:
|
||||||
|
$(SETUP) -configure $(CONFIGUREFLAGS)
|
||||||
|
|
||||||
|
.PHONY: build doc test all install uninstall reinstall clean distclean configure
|
||||||
|
|
||||||
|
# OASIS_STOP
|
||||||
|
33
Makefile.old
Normal file
33
Makefile.old
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
OCB_FLAGS = -use-ocamlfind -I src # -I lib
|
||||||
|
OCB = ocamlbuild $(OCB_FLAGS)
|
||||||
|
PKGS = toml,uuidm,omd,str,batteries,lens,lwt,lwt.unix,ptime,ptime.clock.os,re.str,lens.ppx_deriving
|
||||||
|
WEB_PKGS = $(PKGS),opium.unix,tyxml,mustache
|
||||||
|
CMD_PKGS = $(PKGS),cmdliner
|
||||||
|
|
||||||
|
all: cmd web
|
||||||
|
|
||||||
|
dirs:
|
||||||
|
mkdir -p ymd/uuid ymd/title
|
||||||
|
|
||||||
|
web:
|
||||||
|
$(OCB) web.native -pkgs $(WEB_PKGS)
|
||||||
|
mv web.native logarion-web
|
||||||
|
|
||||||
|
cmd:
|
||||||
|
$(OCB) command.native -pkg $(CMD_PKGS)
|
||||||
|
mv command.native logarion
|
||||||
|
|
||||||
|
style:
|
||||||
|
sassc share/sass/main.sass > share/static/main.css
|
||||||
|
|
||||||
|
doc_html:
|
||||||
|
$(OCB) doc/logarion.docdir/index.html -pkgs $(PKGS)
|
||||||
|
|
||||||
|
opam.dependencies:
|
||||||
|
opam install toml uuidm omd batteries lens lwt ptime ptime re lens opium tyxml mustache cmdliner
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(OCB) -clean
|
||||||
|
rm -f src/*.{cmx,cmi,o} *.{cmx,cmi,o}
|
||||||
|
|
||||||
|
.PHONY: web doc
|
38
_oasis
Normal file
38
_oasis
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
OASISFormat: 0.4
|
||||||
|
Name: logarion
|
||||||
|
Version: 0.1
|
||||||
|
Synopsis: A journalling system using Yamado files.
|
||||||
|
Description: A journalling system using Yamado files for storage.
|
||||||
|
Authors: SP <sp@orbitalfox.com>
|
||||||
|
Copyrights: (C) 2016 SP <sp@orbitalfox.com>
|
||||||
|
License: https://joinup.ec.europa.eu/community/eupl/og_page/european-union-public-licence-eupl-v11
|
||||||
|
Homepage: https://github.com/orbifx/logarion/
|
||||||
|
Plugins: META (0.4), StdFiles (0.4), DevFiles (0.4)
|
||||||
|
BuildTools: ocamlbuild
|
||||||
|
|
||||||
|
Library "logarion"
|
||||||
|
Path: src
|
||||||
|
Modules: Logarion
|
||||||
|
BuildDepends:
|
||||||
|
toml,uuidm,omd,str,batteries,lens,lwt,lwt.unix,ptime,ptime.clock.os,re.str,lens.ppx_deriving
|
||||||
|
|
||||||
|
Executable logarion
|
||||||
|
Path: src
|
||||||
|
BuildDepends:
|
||||||
|
toml,uuidm,omd,str,batteries,lens,lwt,lwt.unix,ptime,ptime.clock.os,re.str,lens.ppx_deriving,
|
||||||
|
cmdliner
|
||||||
|
MainIs: command.ml
|
||||||
|
CompiledObject: best
|
||||||
|
|
||||||
|
Executable logarion-web
|
||||||
|
Path: src
|
||||||
|
BuildDepends:
|
||||||
|
toml,uuidm,omd,str,batteries,lens,lwt,lwt.unix,ptime,ptime.clock.os,re.str,lens.ppx_deriving,
|
||||||
|
opium.unix,tyxml,mustache
|
||||||
|
MainIs: web.ml
|
||||||
|
CompiledObject: best
|
||||||
|
|
||||||
|
SourceRepository head
|
||||||
|
Type: git
|
||||||
|
Location: git://github.com:orbifx/logarion.git
|
||||||
|
Browser: https://github.com/orbifx/logarion
|
Loading…
x
Reference in New Issue
Block a user