diff options
-rw-r--r-- | AUTHORS | 2 | ||||
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | chain/Makefile.am | 19 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | grammar/Makefile.am | 19 | ||||
-rw-r--r-- | graph_macro/Makefile.am | 19 | ||||
-rw-r--r-- | src/lib.rs | 2 |
7 files changed, 62 insertions, 3 deletions
@@ -1 +1 @@ -Jean Sévère Durand
\ No newline at end of file +Jean Sévère Durand <durand@jsdurand.xyz>
\ No newline at end of file diff --git a/Makefile.am b/Makefile.am index 168da9d..026824d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1 @@ -SUBDIRS=graph +SUBDIRS=graph nfa grammar graph_macro chain diff --git a/chain/Makefile.am b/chain/Makefile.am new file mode 100644 index 0000000..623572a --- /dev/null +++ b/chain/Makefile.am @@ -0,0 +1,19 @@ +.PHONY: dev rel clean check + +all: dev + +dev: + @echo "cargo build" + @@CARGO@ build + +rel: + @echo "cargo build --release" + @@CARGO@ build --release + +clean: + @echo "cargo clean" + @@CARGO@ clean + +check: + @echo "cargo clippy" + @@CARGO@ clippy diff --git a/configure.ac b/configure.ac index fe765e6..4f629ce 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,7 @@ AS_IF([test "$CARGO" = "notfound"], [AC_MSG_ERROR([cargo is required])]) AC_PATH_PROG([RUSTC], [rustc], [notfound]) AS_IF([test "$RUSTC" = "notfound"], [AC_MSG_ERROR([rustc is required])]) -AC_CONFIG_FILES([Makefile graph/Makefile nfa/Makefile]) +AC_CONFIG_FILES([Makefile graph/Makefile nfa/Makefile chain/Makefile grammar/Makefile graph_macro/Makefile]) AC_OUTPUT diff --git a/grammar/Makefile.am b/grammar/Makefile.am new file mode 100644 index 0000000..623572a --- /dev/null +++ b/grammar/Makefile.am @@ -0,0 +1,19 @@ +.PHONY: dev rel clean check + +all: dev + +dev: + @echo "cargo build" + @@CARGO@ build + +rel: + @echo "cargo build --release" + @@CARGO@ build --release + +clean: + @echo "cargo clean" + @@CARGO@ clean + +check: + @echo "cargo clippy" + @@CARGO@ clippy diff --git a/graph_macro/Makefile.am b/graph_macro/Makefile.am new file mode 100644 index 0000000..623572a --- /dev/null +++ b/graph_macro/Makefile.am @@ -0,0 +1,19 @@ +.PHONY: dev rel clean check + +all: dev + +dev: + @echo "cargo build" + @@CARGO@ build + +rel: + @echo "cargo build --release" + @@CARGO@ build --release + +clean: + @echo "cargo clean" + @@CARGO@ clean + +check: + @echo "cargo clippy" + @@CARGO@ clippy @@ -1,3 +1,5 @@ +// TODO: Add Emacs bindings + pub fn add(left: usize, right: usize) -> usize { left + right } |