]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add a lint target.
authorRoy Marples <roy@marples.name>
Tue, 13 Jun 2017 18:19:09 +0000 (19:19 +0100)
committerRoy Marples <roy@marples.name>
Tue, 13 Jun 2017 18:19:09 +0000 (19:19 +0100)
Makefile.inc
src/Makefile

index 9b5bddd004cb2093f64f5f5eb7267be1e30017d2..656f7b2b8afbc22d6a30e3f7fe075a47b95a3f07 100644 (file)
@@ -9,6 +9,7 @@ CONFMODE?=      0644
 
 CC?=           cc
 INSTALL?=      install
+LINT?=         lint
 SED?=          sed
 HOST_SH?=      /bin/sh
 
index 014f2f612c04a93abba0c36e67f0d8925fbd3bdc..d7d119312a50fdad7c89e7d5859ffc7a5581020f 100644 (file)
@@ -71,6 +71,9 @@ depend: .depend
 ${PROG}: ${DEPEND} ${OBJS}
        ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}
 
+lint:
+       ${LINT} -Suz ${CPPFLAGS} ${SRCS} ${PCRYPT_SRCS} ${PCOMPAT_SRCS}
+
 _embeddedinstall: ${DHCPCD_DEFS}
        ${INSTALL} -d ${DESTDIR}${LIBEXECDIR}
        ${INSTALL} -m ${CONFMODE} ${DHCPCD_DEFS} ${DESTDIR}${LIBEXECDIR}