touch $@
tasks/extract_%: tasks/download_%
- @[ -e $@ ] && echo "$@ already exists... something isn't right"
+ if [ -e $@ ]; then echo "Error: $@ exists. something isn't right"; false; else true; fi
mkdir -p build
cd build && \
gzip -dc ../download/$*-$(version_$*).tar.gz | $(TAR) -xf - && \
touch $@
tasks/extract_darcs_%:
- @[ -e $@ ] && echo "$@ already exists... something isn't right"
+ if [ -e $@ ]; then echo "Error: $@ exists. something isn't right"; false; else true; fi
mkdir -p build
if [ -z "$(darcs_$*)" ]; then echo "No darcs url for $*" >&2; false; fi
if [ -d "$(root)/_darcs" ]; then \
touch $@
tasks/extract_gcc: tasks/download_gcc
- @[ -e $@ ] && echo "$@ already exists... something isn't right"
+ if [ -e $@ ]; then echo "Error: $@ exists. something isn't right"; false; else true; fi
mkdir -p build
cd build && gzip -dc ../download/gcc-core-$(version_gcc).tar.gz | $(TAR) -xf -
cd build && gzip -dc ../download/gcc-g++-$(version_gcc).tar.gz | $(TAR) -xf -
touch $@
tasks/patch_%: tasks/extract_%
- @[ -e $@ ] && echo "$@ already exists... something isn't right"
+ if [ -e $@ ]; then echo "Error: $@ exists. something isn't right"; false; else true; fi
cd build/$*-$(version_$*) && \
for p in $(patches_$*) end; do \
[ "$$p" = "end" ] || $(PATCH) -p0 < ../../patches/$$p || exit 1; \
touch $@
tasks/extract_gpc: tasks/download_gcc tasks/download_gpc
- @[ -e $@ ] && echo "$@ already exists... something isn't right"
+ if [ -e $@ ]; then echo "Error: $@ exists. something isn't right"; false; else true; fi
mkdir -p build/gpc.extract
cd build/gpc.extract && \
gzip -dc ../../download/gcc-core-$(version_gcc).tar.gz | $(TAR) -xf - && \