Add lint target

This commit is contained in:
dcp1990 2005-06-18 20:18:56 +00:00
parent abb1fdd846
commit 8b58052cb6

View File

@ -1,4 +1,4 @@
# $Amigan: phoned/main.mk,v 1.3 2005/06/18 03:10:32 dcp1990 Exp $ # $Amigan: phoned/main.mk,v 1.4 2005/06/18 20:18:56 dcp1990 Exp $
all: .depend ${MAINBIN} all: .depend ${MAINBIN}
# I know, I know, but it's good. # I know, I know, but it's good.
.depend: ${SRCS} ${OHDRS} .depend: ${SRCS} ${OHDRS}
@ -8,6 +8,8 @@ ${MAINBIN}: ${OBJS}
# for this app # for this app
%.o: %.c %.o: %.c
${CC} ${CFLAGS} -c ${.SOURCE} ${CC} ${CFLAGS} -c ${.SOURCE}
lint:
lint ${CPPFLAGS} -s ${SRCS}
# end ours # end ours
clean: ourclean clean: ourclean
rm -f *.o ${MAINBIN} .depend *~ *.core ${CLEANFILES} rm -f *.o ${MAINBIN} .depend *~ *.core ${CLEANFILES}