Commit 4f7b3269 authored by Liam E. Roeth's avatar Liam E. Roeth

update makefile

add tabify target to convert all spaces to tabs
made run the default target
parent 2a252acf
test : test.out
./test.out
run : main.out
./main.out
.PHONY : run compile test
.PHONY : run compile test tabify
test.out : llist.c llist.h main.c
gcc -std=c99 -o test.out llist.c test.c
test.out : llist.c llist.h test.c
gcc -ggdb -std=c99 -o test.out llist.c test.c
main.out : llist.c llist.h main.c
gcc -std=c99 -o main.out llist.c main.c
compile : test.out main.out
run : main.out
./main.out
test : test.out
./test.out
tabify : *.h
for file in *.c *.h;\
do\
unexpand -t4 --first-only $$file >temp ;\
mv temp $$file;\
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment