Small changes to make clean

This commit is contained in:
jmjatlanta 2016-10-26 20:16:25 -05:00
parent 689408ffe9
commit ffb226cbee
3 changed files with 17 additions and 1 deletions

View file

@ -1,9 +1,11 @@
all:
cd repo; make all;
cd cmd; make all;
cd commands; make all;
cd test; make all;
clean:
cd repo; make clean;
cd cmd; make clean;
cd commands; make clean;
cd test; make clean;

13
commands/Makefile Normal file
View file

@ -0,0 +1,13 @@
CC = gcc
CFLAGS = -O0
LFLAGS =
DEPS = argument.h command.h
OBJS = argument.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
all: $(OBJS)
clean:
rm -f *.o

View file

@ -14,3 +14,4 @@ all: testit
clean:
rm -f *.o
rm -f testit