Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add configure script

  • Loading branch information...
commit 9ab4b6c9b1b49318f565baa1039d818f5683308d 1 parent 469da9e
@brson brson authored
Showing with 27 additions and 0 deletions.
  1. +23 −0 Makefile.in
  2. +4 −0 configure
View
23 Makefile.in
@@ -0,0 +1,23 @@
+VPATH=%VPATH%
+
+RUSTC ?= rustc
+RUSTFLAGS ?=
+
+RUST_SRC = $(shell find $(VPATH)/. -type f -name '*.rs')
+
+.PHONY: all
+all: libjs.dummy
+
+libjs.dummy: js.rc $(RUST_SRC)
+ $(RUSTC) $(RUSTFLAGS) $< -o $@
+ touch $@
+
+js-test: js.rc $(JS_SRC)
+ $(RUSTC) $(RUSTFLAGS) $< -o $@ --test
+
+check: js-test
+ ./js-test
+
+.PHONY: clean
+clean:
+ rm -f js-test *.so *.dylib *.dll *.dummy
View
4 configure
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+SRCDIR="$(cd $(dirname $0) && pwd)"
+sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
Please sign in to comment.
Something went wrong with that request. Please try again.