Skip to content

Instantly share code, notes, and snippets.

@yudhastyawan
Created February 3, 2020 06:06
Show Gist options
  • Save yudhastyawan/03b63c97841525222b654049f719f00a to your computer and use it in GitHub Desktop.
Save yudhastyawan/03b63c97841525222b654049f719f00a to your computer and use it in GitHub Desktop.
Work with multiple directories (Makefile)
all: do
do:
@for a in *; do \
if [ -d $$a ]; then if [ -f $$a/Makefile ]; then \
echo $$a && cd $$a && make && cd ..; \
fi; fi; \
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment