diff --git a/makefile b/makefile index 08f3ecb..ddec505 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,5 @@ +PREFIX := /usr + all: ./build.sh main.native main.byte @@ -15,5 +17,6 @@ clean: ./build.sh -clean rm -f ./*.native ./*.byte - - +install: + install -D ${PREFIX}/bin + install -m 755 main.native ${PREFIX}/bin/scfgc diff --git a/opam b/opam new file mode 100644 index 0000000..aca2a65 --- /dev/null +++ b/opam @@ -0,0 +1,15 @@ +opam-version: "1.2" +name: "scfgc" +version: "0.3" +maintainer: "smog_alado " +author: "smog_alado " +homepage: "https://github.com/hugomg/scfgc" +bug-reports: "https://github.com/hugomg/scfgc/issues" +license: "" +dev-repo: "git://github.com/hugomg/scfgc.git" +build: [ + [make] +] +install: ["install" "-m" "755" "main.native" "%{prefix}%/bin/scfgc"] +remove: ["ocamlfind" "remove" "project"] +depends: ["ocamlfind" "core_kernel" "menhir" "cmdliner" "fileutils"]