2 cpu
:= $(shell uname
-m
)
3 os
:= $(shell uname
-s
)
4 ver
:= $(shell grep
-hoE
"\(version +[^ \)]+" dune-project | cut
-d
" " -f2
)
5 ver
:= $(ver
)-alpha
+$(shell date
+%Y
%m
%d
)
6 dst
:= _build
/seppo-
$(os
)-$(cpu
)-$(ver
).cgi
8 cdst
:= _build
/apchk-
$(os
)-$(cpu
)-$(cver
).cgi
11 # rapper -i rdfxml -o turtle $< > $@
14 rapper
-i turtle
-o rdfxml-abbrev
$< > $@
16 final
: build
$(dst
) $(cdst
) doap.rdf
22 opam
install .
--deps-only
--with-test
--with-doc
--yes
25 rsync
-avPz
$(dst
) $(cdst
) seppo.mro.name
:~
/seppo.mro.name
/_bin
/`date +%FT%H%M%S`/
27 $(dst
): _build
/default
/bin
/seppo_bin.exe
33 $(cdst
): _build
/default
/chkr
/apchk.exe
40 curl
--location
--output
$@ https
://raw.githubusercontent.com
/benjenkinsv95
/ocaml-unit-testing-helpers
/master
/assert.ml
43 # https://github.com/ocaml/dune/tree/master/example/sample-projects/hello_world
44 # via https://stackoverflow.com/a/54712669
46 .PHONY
: all deps pull build
clean test doc
49 dune build
--profile release bin
/seppo_bin.exe
50 dune build
--profile release chkr
/apchk.exe
57 doc
: _build
/post.svg _build
/auth.svg
61 # rm -rf _build *.install
65 mscgen
-T svg
-o
$@
-i
$^