aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--lib/Makefile.am8
-rw-r--r--src/Makefile.am8
3 files changed, 14 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index e56201000..177b0ea61 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -155,3 +155,7 @@ ca-bundle: lib/mk-ca-bundle.pl
ca-firefox: lib/firefox-db2pem.sh
@echo "generate a fresh ca-bundle.crt"
./lib/firefox-db2pem.sh lib/ca-bundle.crt
+
+checksrc:
+ cd lib && $(MAKE) checksrc
+ cd src && $(MAKE) checksrc
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 0e80f5e18..fa6b846ad 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -185,9 +185,11 @@ $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
done; \
cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )
+
+checksrc:
+ @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
+
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes
-all-local:
- @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
+all-local: checksrc
endif
-
diff --git a/src/Makefile.am b/src/Makefile.am
index c1915f7f7..d697e78ea 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -96,10 +96,12 @@ $(HUGE):
echo "void hugehelp(void) {}" >>$(HUGE)
endif
-if CURLDEBUG
-# for debug builds, we scan the sources on all regular make invokes
# ignore hugehelp.c since it is generated source code and it plays by slightly
# different rules!
-all-local:
+checksrc:
@@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/src -Whugehelp.c $(curl_SOURCES)
+
+if CURLDEBUG
+# for debug builds, we scan the sources on all regular make invokes
+all-local: checksrc
endif