From c27027cd2eeebfa63c084e746c7da46c952fb255 Mon Sep 17 00:00:00 2001 From: Tharre Date: Mon, 17 Nov 2014 15:48:23 +0100 Subject: Merge all redo-*.c files into redo.c. The resulting redo binary behaves differently if called with each respective redo-* name, and is symlinked to the different command names. This should reduce the memory footprint of a redo build, as the OS only needs to keep one copy of the redo code in memory. --- Redofile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Redofile') diff --git a/Redofile b/Redofile index c3eff67..1572634 100644 --- a/Redofile +++ b/Redofile @@ -8,19 +8,17 @@ export VERSION="pre-0.01" DESTDIR=${DESTDIR-/usr/bin} if [ "$1" = "all" ]; then - redo-ifchange $OUTDIR/redo $OUTDIR/redo-ifchange $OUTDIR/redo-ifcreate \ - $OUTDIR/redo-always + redo-ifchange $OUTDIR/redo elif [ "$1" = "clean" ]; then - rm -rf $OUTDIR/*.tmp $OUTDIR/*.o $OUTDIR/redo $OUTDIR/redo-ifchange \ - $OUTDIR/redo-ifcreate $OUTDIR/redo-always $OUTDIR/CC + 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 - install $OUTDIR/redo-ifchange $DESTDIR - install $OUTDIR/redo-ifcreate $DESTDIR - install $OUTDIR/redo-always $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 -- cgit v1.2.3-70-g09d2