run : main.out
	./main.out

.PHONY : run all test test2

test.out : tabify llist.c llist.h test.c
	gcc -ggdb -std=c99 -o test.out llist.c test.c

main.out : tabify llist.c llist.h main.c
	gcc -std=c99 -o main.out llist.c main.c

test2.out : tabify llist.c llist.h test2.c
	gcc -std=c99 -o test2.out llist.c test2.c

all : test.out main.out

test : test.out
	./test.out

test2 : test2.out
	./test2.out

tabify : *.h *.c
	for file in *.c *.h;\
	do\
	  unexpand -t4 --first-only $$file >temp ;\
	  mv temp $$file;\
	done
	touch tabify

gitindex : tabify *.c *.h
	git add *.c *.h