Skip to content

Commit

Permalink
make: build the docs subdir only from within src
Browse files Browse the repository at this point in the history
... and don't build at all in include

Prompted-by-work-by: Simon Warta
Ref: #1590
  • Loading branch information
bagder committed Jun 19, 2017
1 parent 8621b61 commit ff2f69f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/Makefile.am
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions src/Makefile.am
Expand Up @@ -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
Expand Down Expand Up @@ -101,9 +103,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.
Expand Down

0 comments on commit ff2f69f

Please sign in to comment.