aboutsummaryrefslogtreecommitdiffstats
path: root/default.do
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-11-18 22:29:22 +0100
committerTharre <tharre3@gmail.com>2014-11-18 22:29:22 +0100
commit1ef287e9b1387ca0e76f378e30e7a51ec439f952 (patch)
tree5679cfccaeeecb7071276a48a43c0480640bf556 /default.do
parent3380e012cd4973d7267496d0713c6ca681b0a4b7 (diff)
downloadredo-1ef287e9b1387ca0e76f378e30e7a51ec439f952.tar.gz
redo-1ef287e9b1387ca0e76f378e30e7a51ec439f952.tar.xz
redo-1ef287e9b1387ca0e76f378e30e7a51ec439f952.zip
Remove Redofile as an alias for default.do
Diffstat (limited to 'default.do')
-rw-r--r--default.do24
1 files changed, 24 insertions, 0 deletions
diff --git a/default.do b/default.do
new file mode 100644
index 0000000..1572634
--- /dev/null
+++ b/default.do
@@ -0,0 +1,24 @@
+# define all project wide variables
+
+export ROOTDIR=$(pwd)
+export SRCDIR=$ROOTDIR/src
+export OUTDIR=$ROOTDIR/out
+export VERSION="pre-0.01"
+
+DESTDIR=${DESTDIR-/usr/bin}
+
+if [ "$1" = "all" ]; then
+ redo-ifchange $OUTDIR/redo
+elif [ "$1" = "clean" ]; then
+ rm -rf $OUTDIR/*.tmp $OUTDIR/*.o $OUTDIR/redo $OUTDIR/CC
+ # autoconf stuff
+ rm -rf autom4te.cache config.h.in configure config.status config.log config.h
+elif [ "$1" = "install" ]; then
+ redo-ifchange all
+ mkdir -p $DESTDIR
+ install $OUTDIR/redo $DESTDIR
+ ln -sf $DESTDIR/redo $DESTDIR/redo-ifchange
+ ln -sf $DESTDIR/redo $DESTDIR/redo-ifcreate
+ ln -sf $DESTDIR/redo $DESTDIR/redo-always
+ echo "Finished installing."
+fi