Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: move scripts/basic/docproc.c to scripts/docproc.c

Move docproc from scripts/basic to scripts so it is only built for *doc
targets instead of every time the kernel is built.

authored by

Peter Foley and committed by
Michal Marek
bffd2020 7a04fc94

+9 -7
+1 -1
Documentation/DocBook/Makefile
··· 73 73 ### 74 74 #External programs used 75 75 KERNELDOC = $(srctree)/scripts/kernel-doc 76 - DOCPROC = $(objtree)/scripts/basic/docproc 76 + DOCPROC = $(objtree)/scripts/docproc 77 77 78 78 XMLTOFLAGS = -m $(srctree)/Documentation/DocBook/stylesheet.xsl 79 79 XMLTOFLAGS += --skip-validation
+1
Makefile
··· 1313 1313 # Documentation targets 1314 1314 # --------------------------------------------------------------------------- 1315 1315 %docs: scripts_basic FORCE 1316 + $(Q)$(MAKE) $(build)=scripts build_docproc 1316 1317 $(Q)$(MAKE) $(build)=Documentation/DocBook $@ 1317 1318 1318 1319 else # KBUILD_EXTMOD
+1
scripts/.gitignore
··· 8 8 unifdef 9 9 ihex2fw 10 10 recordmcount 11 + docproc
+5 -2
scripts/Makefile
··· 6 6 # pnmttologo: Convert pnm files to logo files 7 7 # conmakehash: Create chartable 8 8 # conmakehash: Create arrays for initializing the kernel console tables 9 + # docproc: Used in Documentation/DocBook 9 10 10 11 hostprogs-$(CONFIG_KALLSYMS) += kallsyms 11 12 hostprogs-$(CONFIG_LOGO) += pnmtologo ··· 17 16 always := $(hostprogs-y) $(hostprogs-m) 18 17 19 18 # The following hostprogs-y programs are only build on demand 20 - hostprogs-y += unifdef 19 + hostprogs-y += unifdef docproc 21 20 22 - # This target is used internally to avoid "is up to date" messages 21 + # These targets are used internally to avoid "is up to date" messages 23 22 PHONY += build_unifdef 24 23 build_unifdef: scripts/unifdef FORCE 24 + @: 25 + build_docproc: scripts/docproc FORCE 25 26 @: 26 27 27 28 subdir-$(CONFIG_MODVERSIONS) += genksyms
-2
scripts/basic/.gitignore
··· 1 - hash 2 1 fixdep 3 - docproc
+1 -2
scripts/basic/Makefile
··· 7 7 # .config is included by main Makefile. 8 8 # --------------------------------------------------------------------------- 9 9 # fixdep: Used to generate dependency information during build process 10 - # docproc: Used in Documentation/DocBook 11 10 12 - hostprogs-y := fixdep docproc 11 + hostprogs-y := fixdep 13 12 always := $(hostprogs-y) 14 13 15 14 # fixdep is needed to compile other host programs
scripts/basic/docproc.c scripts/docproc.c