Skip to content

Instantly share code, notes, and snippets.

@deryni
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deryni/1c9055860b18083fac92 to your computer and use it in GitHub Desktop.
Save deryni/1c9055860b18083fac92 to your computer and use it in GitHub Desktop.
make -j2 test
CC=gcc
l.a : l.a(a.o)
ranlib l.a
echo done
l.a(a.o) : a.c
clean::
rm -f l.a a.o
touch a.c
while { make clean; make -j2; } &> test.out; grep -q ranlib test.out; do echo -n .; done; echo
while { make clean; make -j2; } &> test.out.ranlib; ! grep -q ranlib test.out.ranlib; do echo -n .; done; echo
@deryni
Copy link
Author

deryni commented Dec 1, 2014

Output

$ sh test.sh
..
.....................
::::::::::::::
test.out
::::::::::::::
rm -f l.a a.o
gcc    -c -o a.o a.c
ar rv l.a a.o
ar: creating l.a
a - a.o
::::::::::::::
test.out.ranlib
::::::::::::::
rm -f l.a a.o
gcc    -c -o a.o a.c
ar rv l.a a.o
ar: creating l.a
a - a.o
ranlib l.a
echo done
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment