diff --git a/Makefile b/Makefile index 1cb161a..7365ae0 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ all: ${MAKE} -C src +it: all + install: install-lib install-inc install-d install-lib: all @@ -33,6 +35,7 @@ doc: clean: ${MAKE} -C src clean + ${MAKE} -C lib clean ${MAKE} -C test clean rm -rf doc/html doc/latex doc/man diff --git a/lib/Makefile b/lib/Makefile index 6b53b18..fa8114a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -11,3 +11,6 @@ libdir: ${LIBS}: libdir ${INSTALL} $@ ${libdir} + +clean: + rm -f ${LIBS} diff --git a/src/Makefile b/src/Makefile index f7dacad..25df0c6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,6 +5,7 @@ DIET = diet S = packet.c parse.c match.c render.c memmem.c itoa.c variable.c text.c O = packet.o parse.o match.o render.o memmem.o itoa.o variable.o text.o +P = match itoa all: CC := ${WRAPPER} ${CC} all: lib @@ -30,7 +31,7 @@ itoa: itoa.c it: match clean: - rm -f $O ../lib/libpsyc.a + rm -f $O $P help: @/bin/echo -e "Usage:\n\tmake - compile\n\tmake diet - compile with diet libc"