Commit d3252e00 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

checksrc: run checksrc in tests when 'make checksrc' in root

parent 19fafa1f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -282,6 +282,7 @@ ca-firefox: lib/firefox-db2pem.sh
checksrc:
	cd lib && $(MAKE) checksrc
	cd src && $(MAKE) checksrc
	cd tests && $(MAKE) checksrc

.PHONY: vc-ide

+4 −0
Original line number Diff line number Diff line
@@ -92,3 +92,7 @@ torture-test: perlcheck all
	ps2pdf $$foo.ps $@; \
	rm $$foo.ps; \
	echo "converted $< to $@")

checksrc:
	cd libtest && $(MAKE) checksrc
	cd unit && $(MAKE) checksrc
+4 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#                            | (__| |_| |  _ <| |___
#                             \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
# Copyright (C) 1998 - 2013, 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -115,3 +115,6 @@ libhostname_la_SOURCES = sethostname.c sethostname.h

libhostname_la_LIBADD =
libhostname_la_DEPENDENCIES =

checksrc:
	@@PERL@ $(top_srcdir)/lib/checksrc.pl $(top_srcdir)/tests/libtest/*.c
+4 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#                            | (__| |_| |  _ <| |___
#                             \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -71,6 +71,9 @@ AM_CPPFLAGS += -DCURL_STATICLIB -DUNITTESTS
# Makefile.inc provides neat definitions
include Makefile.inc

checksrc:
	@@PERL@ $(top_srcdir)/lib/checksrc.pl $(top_srcdir)/tests/unit/*.c

if BUILD_UNITTESTS
noinst_PROGRAMS = $(UNITPROGS)
else