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
|
||||
*~
|
||||
*.o
|
||||
*.native
|
||||
setup.*
|
||||
configure
|
||||
AUTHORS.txt
|
||||
INSTALL.txt
|
||||
logarion
|
||||
_build
|
||||
ymd/
|
54
Makefile
54
Makefile
@ -1,33 +1,41 @@
|
||||
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
|
||||
# OASIS_START
|
||||
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
|
||||
|
||||
all: cmd web
|
||||
SETUP = ocaml setup.ml
|
||||
|
||||
dirs:
|
||||
mkdir -p ymd/uuid ymd/title
|
||||
build: setup.data
|
||||
$(SETUP) -build $(BUILDFLAGS)
|
||||
|
||||
web:
|
||||
$(OCB) web.native -pkgs $(WEB_PKGS)
|
||||
mv web.native logarion-web
|
||||
doc: setup.data build
|
||||
$(SETUP) -doc $(DOCFLAGS)
|
||||
|
||||
cmd:
|
||||
$(OCB) command.native -pkg $(CMD_PKGS)
|
||||
mv command.native logarion
|
||||
test: setup.data build
|
||||
$(SETUP) -test $(TESTFLAGS)
|
||||
|
||||
style:
|
||||
sassc share/sass/main.sass > share/static/main.css
|
||||
all:
|
||||
$(SETUP) -all $(ALLFLAGS)
|
||||
|
||||
doc_html:
|
||||
$(OCB) doc/logarion.docdir/index.html -pkgs $(PKGS)
|
||||
install: setup.data
|
||||
$(SETUP) -install $(INSTALLFLAGS)
|
||||
|
||||
opam.dependencies:
|
||||
opam install toml uuidm omd batteries lens lwt ptime ptime re lens opium tyxml mustache cmdliner
|
||||
uninstall: setup.data
|
||||
$(SETUP) -uninstall $(UNINSTALLFLAGS)
|
||||
|
||||
reinstall: setup.data
|
||||
$(SETUP) -reinstall $(REINSTALLFLAGS)
|
||||
|
||||
clean:
|
||||
$(OCB) -clean
|
||||
rm -f src/*.{cmx,cmi,o} *.{cmx,cmi,o}
|
||||
$(SETUP) -clean $(CLEANFLAGS)
|
||||
|
||||
.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