Skip to content

Instantly share code, notes, and snippets.

@karanssh
Created September 6, 2021 14:43
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 karanssh/142a184afea767e03787de844eaed0e2 to your computer and use it in GitHub Desktop.
Save karanssh/142a184afea767e03787de844eaed0e2 to your computer and use it in GitHub Desktop.
Append some command to end of multiple Makefiles
#!/bin/bash
for file in $(find . -maxdepth 2 -name "Makefile" ); do
echo Processing $file
echo >> $file
echo "lint-check:
# no lint tests yet" >> $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment