]> granicus.if.org Git - curl/commitdiff
make: build the docs subdir only from within src
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Jun 2017 14:42:26 +0000 (16:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Jun 2017 15:09:01 +0000 (17:09 +0200)
... and don't build at all in include

Prompted-by-work-by: Simon Warta
Ref: #1590
Closes #1591

Makefile.am
docs/Makefile.am
src/Makefile.am

index dc66067cfb02a72e1c61a26dbb3931ab1d0d9166..64c1ca200fd3fa654b9adc95fa2101785fd767c7 100644 (file)
@@ -154,8 +154,8 @@ CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ)  \
 
 bin_SCRIPTS = curl-config
 
-SUBDIRS = lib docs src include
-DIST_SUBDIRS = $(SUBDIRS) tests packages scripts
+SUBDIRS = lib src
+DIST_SUBDIRS = $(SUBDIRS) tests packages scripts include docs
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libcurl.pc
index 21c1be048ba8304af4dc2cc87c6ca8ed241f254c..086b8c15f5d6a6045b4d47497825bcf3953062c0 100644 (file)
@@ -35,8 +35,8 @@ HTMLPAGES = $(GENHTMLPAGES) index.html
 
 # Build targets in this file (.) before cmdline-opts to ensure that
 # the curl.1 rule below runs first
-SUBDIRS = libcurl . cmdline-opts
-DIST_SUBDIRS = $(SUBDIRS) examples
+SUBDIRS = . cmdline-opts
+DIST_SUBDIRS = $(SUBDIRS) examples libcurl
 
 CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) $(MANDISTPAGES) curl.1
 
index 7b4835953dcedfbda94dcf361bafdb0fbe0db167..861668467d4d01d765d5de28332b284dbf449a3f 100644 (file)
@@ -43,6 +43,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/include        \
 
 bin_PROGRAMS = curl
 
+SUBDIRS = ../docs
+
 if USE_CPPFLAG_CURL_STATICLIB
 AM_CPPFLAGS += -DCURL_STATICLIB
 endif
@@ -81,7 +83,6 @@ libcurltool_la_LDFLAGS = -static $(LINKFLAGS)
 libcurltool_la_SOURCES = $(curl_SOURCES)
 endif
 
-BUILT_SOURCES = tool_hugehelp.c
 CLEANFILES = tool_hugehelp.c
 # Use the C locale to ensure that only ASCII characters appear in the
 # embedded text.
@@ -101,9 +102,6 @@ HUGE=tool_hugehelp.c
 if USE_MANUAL
 # Here are the stuff to create a built-in manual
 
-$(MANPAGE):
-       cd $(top_builddir)/docs && $(MAKE)
-
 if HAVE_LIBZ
 # This generates the tool_hugehelp.c file in both uncompressed and
 # compressed formats.