Skip to content

Instantly share code, notes, and snippets.

@chelmertz
Created October 8, 2011 22:20
Show Gist options
  • Save chelmertz/1272982 to your computer and use it in GitHub Desktop.
Save chelmertz/1272982 to your computer and use it in GitHub Desktop.
Makefile for c studies
compile = gcc -Wall -c
ignored = *.zip *.pdf *.out *.swp .DS_Store *.o
init:
touch notes.md
for ignored in $(ignored) ; do \
echo $$ignored >> .gitignore ; \
done
default: clean
$(compile) *.c
gcc -o queue queue.o main.o menu.o
chmod +x queue
zip:
gimli && \
zip handin.zip *.c *.pdf
clean:
rm -f queue
rm -f *.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment