Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Commit

Permalink
Add Makefile for personal convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
silas committed Dec 29, 2010
1 parent c090058 commit 49826af
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
19 changes: 19 additions & 0 deletions Makefile
@@ -0,0 +1,19 @@
SCONS?=scons
TESTS?=./tests
OPTFLAGS?=
PREFIX?=/usr/local

build:
$(SCONS) --flags="${OPTFLAGS}"

devel:
$(SCONS) --flags="${OPTFLAGS}" --with-devel

install:
$(SCONS) --flags="${OPTFLAGS}" --prefix="${PREFIX}"

test:
cd ${TEST_DIR} && ./run

clean:
$(SCONS) -c
10 changes: 1 addition & 9 deletions test → tests/run
@@ -1,16 +1,8 @@
#!/usr/bin/env bash

run-tests() {
pushd tests
scons && \
scons && \
./test-config && \
./test-envelope && \
./test-logging && \
./test-process && \
./test-settings
retval=$?
popd
return $retval
}

run-tests

0 comments on commit 49826af

Please sign in to comment.