* Add a new FORMAT, 'tar'. If it's used then ${SRC} is bundled up in to
${DOC}.tar. This honours the compression flags, so you can have it generate .gz, .zip, etc. * Instead of only building compressed versions when running the "install" target they are now built for the "all" target as well.
This commit is contained in:
parent
c73e1d5b63
commit
844ba003e7
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=4150
3 changed files with 84 additions and 66 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.11 1999-01-27 23:39:47 nik Exp $
|
# $Id: Makefile,v 1.12 1999-01-30 00:10:35 nik Exp $
|
||||||
#
|
#
|
||||||
# Build the FreeBSD Handbook. Will eventually split in two, a generic .mk
|
# Build the FreeBSD Handbook. Will eventually split in two, a generic .mk
|
||||||
# file which can be used by many Makefiles, and a much smaller Makefile
|
# file which can be used by many Makefiles, and a much smaller Makefile
|
||||||
|
@ -28,7 +28,7 @@ DOC?= handbook
|
||||||
# FORMATS lists the output formats that should be generated. Valid values
|
# FORMATS lists the output formats that should be generated. Valid values
|
||||||
# are
|
# are
|
||||||
#
|
#
|
||||||
# txt html html-split ps pdf rtf
|
# txt html html-split ps pdf rtf tar
|
||||||
#
|
#
|
||||||
# html-split is the file split into (probably) many individual HTML files,
|
# html-split is the file split into (probably) many individual HTML files,
|
||||||
# linked from one index.html file.
|
# linked from one index.html file.
|
||||||
|
@ -116,7 +116,7 @@ DSSSLCATALOG= /usr/local/share/sgml/docbook/dsssl/modular/catalog
|
||||||
|
|
||||||
JADEFLAGS= ${JADEOPTS} -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG}
|
JADEFLAGS= ${JADEOPTS} -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG}
|
||||||
|
|
||||||
KNOWN_FORMATS= html html-split txt rtf ps pdf tex dvi
|
KNOWN_FORMATS= html html-split txt rtf ps pdf tex dvi tar
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -181,13 +181,31 @@ CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex ${DOC}.pdf
|
||||||
.elif ${_cf} == "rtf"
|
.elif ${_cf} == "rtf"
|
||||||
_docs+= ${DOC}.rtf
|
_docs+= ${DOC}.rtf
|
||||||
CLEANFILES+= ${DOC}.rtf
|
CLEANFILES+= ${DOC}.rtf
|
||||||
.endif
|
.elif ${_cf} == "tar"
|
||||||
.if !empty(INSTALL_COMPRESSED) && ${_cf} != "html-split"
|
_docs+= ${DOC}.tar
|
||||||
_clean:= ${CLEANFILES} ${INSTALL_COMPRESSED:S/^/${DOC}.${_cf}.&/}
|
CLEANFILES+= ${DOC}.tar
|
||||||
CLEANFILES:= ${_clean}
|
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build a list of install-${format}.${compress_format} targets to be
|
||||||
|
# by "make install". Also, add ${DOC}.${format}.${compress_format} to
|
||||||
|
# ${_docs} and ${CLEANFILES} so they get built/cleaned by "all" and
|
||||||
|
# "clean".
|
||||||
|
#
|
||||||
|
.if !empty(INSTALL_COMPRESSED)
|
||||||
|
.for _curformat in ${FORMATS}
|
||||||
|
_cf=${_curformat}
|
||||||
|
.if ${_cf} != "html-split"
|
||||||
|
.for _curcomp in ${INSTALL_COMPRESSED}
|
||||||
|
_curinst+= install-${_curformat}.${_curcomp}
|
||||||
|
_docs+= ${DOC}.${_curformat}.${_curcomp}
|
||||||
|
CLEANFILES+= ${DOC}.${_curformat}.${_curcomp}
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Targets
|
# Targets
|
||||||
|
@ -238,6 +256,9 @@ ${DOC}.pdf: ${DOC}.tex
|
||||||
${DOC}.ps: ${DOC}.dvi
|
${DOC}.ps: ${DOC}.dvi
|
||||||
dvips -o ${DOC}.ps ${DOC}.dvi
|
dvips -o ${DOC}.ps ${DOC}.dvi
|
||||||
|
|
||||||
|
${DOC}.tar:
|
||||||
|
tar cf ${.TARGET} ${SRCS}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Compress targets
|
# Compress targets
|
||||||
|
@ -300,21 +321,6 @@ ${DOC}.${_cf}.${_curcompress}: ${DOC}.${_cf} _PROG_COMPRESS_${_curcompress}
|
||||||
#
|
#
|
||||||
install: beforeinstall realinstall afterinstall
|
install: beforeinstall realinstall afterinstall
|
||||||
|
|
||||||
#
|
|
||||||
# Build a list of install-format-compress_format targets to be installed.
|
|
||||||
# These will be dependecies for the "realinstall" target.
|
|
||||||
#
|
|
||||||
.if !empty(INSTALL_COMPRESSED)
|
|
||||||
.for _curformat in ${FORMATS}
|
|
||||||
_cf=${_curformat}
|
|
||||||
.if ${_cf} != "html-split"
|
|
||||||
.for _curcomp in ${INSTALL_COMPRESSED}
|
|
||||||
_curinst+= install-${_curformat}.${_curcomp}
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build a list of install-format targets to be installed. These will be
|
# Build a list of install-format targets to be installed. These will be
|
||||||
# dependencies for the "realinstall" target.
|
# dependencies for the "realinstall" target.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.11 1999-01-27 23:39:47 nik Exp $
|
# $Id: Makefile,v 1.12 1999-01-30 00:10:35 nik Exp $
|
||||||
#
|
#
|
||||||
# Build the FreeBSD Handbook. Will eventually split in two, a generic .mk
|
# Build the FreeBSD Handbook. Will eventually split in two, a generic .mk
|
||||||
# file which can be used by many Makefiles, and a much smaller Makefile
|
# file which can be used by many Makefiles, and a much smaller Makefile
|
||||||
|
@ -28,7 +28,7 @@ DOC?= handbook
|
||||||
# FORMATS lists the output formats that should be generated. Valid values
|
# FORMATS lists the output formats that should be generated. Valid values
|
||||||
# are
|
# are
|
||||||
#
|
#
|
||||||
# txt html html-split ps pdf rtf
|
# txt html html-split ps pdf rtf tar
|
||||||
#
|
#
|
||||||
# html-split is the file split into (probably) many individual HTML files,
|
# html-split is the file split into (probably) many individual HTML files,
|
||||||
# linked from one index.html file.
|
# linked from one index.html file.
|
||||||
|
@ -116,7 +116,7 @@ DSSSLCATALOG= /usr/local/share/sgml/docbook/dsssl/modular/catalog
|
||||||
|
|
||||||
JADEFLAGS= ${JADEOPTS} -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG}
|
JADEFLAGS= ${JADEOPTS} -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG}
|
||||||
|
|
||||||
KNOWN_FORMATS= html html-split txt rtf ps pdf tex dvi
|
KNOWN_FORMATS= html html-split txt rtf ps pdf tex dvi tar
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -181,13 +181,31 @@ CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex ${DOC}.pdf
|
||||||
.elif ${_cf} == "rtf"
|
.elif ${_cf} == "rtf"
|
||||||
_docs+= ${DOC}.rtf
|
_docs+= ${DOC}.rtf
|
||||||
CLEANFILES+= ${DOC}.rtf
|
CLEANFILES+= ${DOC}.rtf
|
||||||
.endif
|
.elif ${_cf} == "tar"
|
||||||
.if !empty(INSTALL_COMPRESSED) && ${_cf} != "html-split"
|
_docs+= ${DOC}.tar
|
||||||
_clean:= ${CLEANFILES} ${INSTALL_COMPRESSED:S/^/${DOC}.${_cf}.&/}
|
CLEANFILES+= ${DOC}.tar
|
||||||
CLEANFILES:= ${_clean}
|
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build a list of install-${format}.${compress_format} targets to be
|
||||||
|
# by "make install". Also, add ${DOC}.${format}.${compress_format} to
|
||||||
|
# ${_docs} and ${CLEANFILES} so they get built/cleaned by "all" and
|
||||||
|
# "clean".
|
||||||
|
#
|
||||||
|
.if !empty(INSTALL_COMPRESSED)
|
||||||
|
.for _curformat in ${FORMATS}
|
||||||
|
_cf=${_curformat}
|
||||||
|
.if ${_cf} != "html-split"
|
||||||
|
.for _curcomp in ${INSTALL_COMPRESSED}
|
||||||
|
_curinst+= install-${_curformat}.${_curcomp}
|
||||||
|
_docs+= ${DOC}.${_curformat}.${_curcomp}
|
||||||
|
CLEANFILES+= ${DOC}.${_curformat}.${_curcomp}
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Targets
|
# Targets
|
||||||
|
@ -238,6 +256,9 @@ ${DOC}.pdf: ${DOC}.tex
|
||||||
${DOC}.ps: ${DOC}.dvi
|
${DOC}.ps: ${DOC}.dvi
|
||||||
dvips -o ${DOC}.ps ${DOC}.dvi
|
dvips -o ${DOC}.ps ${DOC}.dvi
|
||||||
|
|
||||||
|
${DOC}.tar:
|
||||||
|
tar cf ${.TARGET} ${SRCS}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Compress targets
|
# Compress targets
|
||||||
|
@ -300,21 +321,6 @@ ${DOC}.${_cf}.${_curcompress}: ${DOC}.${_cf} _PROG_COMPRESS_${_curcompress}
|
||||||
#
|
#
|
||||||
install: beforeinstall realinstall afterinstall
|
install: beforeinstall realinstall afterinstall
|
||||||
|
|
||||||
#
|
|
||||||
# Build a list of install-format-compress_format targets to be installed.
|
|
||||||
# These will be dependecies for the "realinstall" target.
|
|
||||||
#
|
|
||||||
.if !empty(INSTALL_COMPRESSED)
|
|
||||||
.for _curformat in ${FORMATS}
|
|
||||||
_cf=${_curformat}
|
|
||||||
.if ${_cf} != "html-split"
|
|
||||||
.for _curcomp in ${INSTALL_COMPRESSED}
|
|
||||||
_curinst+= install-${_curformat}.${_curcomp}
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build a list of install-format targets to be installed. These will be
|
# Build a list of install-format targets to be installed. These will be
|
||||||
# dependencies for the "realinstall" target.
|
# dependencies for the "realinstall" target.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.11 1999-01-27 23:39:47 nik Exp $
|
# $Id: Makefile,v 1.12 1999-01-30 00:10:35 nik Exp $
|
||||||
#
|
#
|
||||||
# Build the FreeBSD Handbook. Will eventually split in two, a generic .mk
|
# Build the FreeBSD Handbook. Will eventually split in two, a generic .mk
|
||||||
# file which can be used by many Makefiles, and a much smaller Makefile
|
# file which can be used by many Makefiles, and a much smaller Makefile
|
||||||
|
@ -28,7 +28,7 @@ DOC?= handbook
|
||||||
# FORMATS lists the output formats that should be generated. Valid values
|
# FORMATS lists the output formats that should be generated. Valid values
|
||||||
# are
|
# are
|
||||||
#
|
#
|
||||||
# txt html html-split ps pdf rtf
|
# txt html html-split ps pdf rtf tar
|
||||||
#
|
#
|
||||||
# html-split is the file split into (probably) many individual HTML files,
|
# html-split is the file split into (probably) many individual HTML files,
|
||||||
# linked from one index.html file.
|
# linked from one index.html file.
|
||||||
|
@ -116,7 +116,7 @@ DSSSLCATALOG= /usr/local/share/sgml/docbook/dsssl/modular/catalog
|
||||||
|
|
||||||
JADEFLAGS= ${JADEOPTS} -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG}
|
JADEFLAGS= ${JADEOPTS} -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG}
|
||||||
|
|
||||||
KNOWN_FORMATS= html html-split txt rtf ps pdf tex dvi
|
KNOWN_FORMATS= html html-split txt rtf ps pdf tex dvi tar
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -181,13 +181,31 @@ CLEANFILES+= ${DOC}.aux ${DOC}.dvi ${DOC}.log ${DOC}.tex ${DOC}.pdf
|
||||||
.elif ${_cf} == "rtf"
|
.elif ${_cf} == "rtf"
|
||||||
_docs+= ${DOC}.rtf
|
_docs+= ${DOC}.rtf
|
||||||
CLEANFILES+= ${DOC}.rtf
|
CLEANFILES+= ${DOC}.rtf
|
||||||
.endif
|
.elif ${_cf} == "tar"
|
||||||
.if !empty(INSTALL_COMPRESSED) && ${_cf} != "html-split"
|
_docs+= ${DOC}.tar
|
||||||
_clean:= ${CLEANFILES} ${INSTALL_COMPRESSED:S/^/${DOC}.${_cf}.&/}
|
CLEANFILES+= ${DOC}.tar
|
||||||
CLEANFILES:= ${_clean}
|
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build a list of install-${format}.${compress_format} targets to be
|
||||||
|
# by "make install". Also, add ${DOC}.${format}.${compress_format} to
|
||||||
|
# ${_docs} and ${CLEANFILES} so they get built/cleaned by "all" and
|
||||||
|
# "clean".
|
||||||
|
#
|
||||||
|
.if !empty(INSTALL_COMPRESSED)
|
||||||
|
.for _curformat in ${FORMATS}
|
||||||
|
_cf=${_curformat}
|
||||||
|
.if ${_cf} != "html-split"
|
||||||
|
.for _curcomp in ${INSTALL_COMPRESSED}
|
||||||
|
_curinst+= install-${_curformat}.${_curcomp}
|
||||||
|
_docs+= ${DOC}.${_curformat}.${_curcomp}
|
||||||
|
CLEANFILES+= ${DOC}.${_curformat}.${_curcomp}
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Targets
|
# Targets
|
||||||
|
@ -238,6 +256,9 @@ ${DOC}.pdf: ${DOC}.tex
|
||||||
${DOC}.ps: ${DOC}.dvi
|
${DOC}.ps: ${DOC}.dvi
|
||||||
dvips -o ${DOC}.ps ${DOC}.dvi
|
dvips -o ${DOC}.ps ${DOC}.dvi
|
||||||
|
|
||||||
|
${DOC}.tar:
|
||||||
|
tar cf ${.TARGET} ${SRCS}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Compress targets
|
# Compress targets
|
||||||
|
@ -300,21 +321,6 @@ ${DOC}.${_cf}.${_curcompress}: ${DOC}.${_cf} _PROG_COMPRESS_${_curcompress}
|
||||||
#
|
#
|
||||||
install: beforeinstall realinstall afterinstall
|
install: beforeinstall realinstall afterinstall
|
||||||
|
|
||||||
#
|
|
||||||
# Build a list of install-format-compress_format targets to be installed.
|
|
||||||
# These will be dependecies for the "realinstall" target.
|
|
||||||
#
|
|
||||||
.if !empty(INSTALL_COMPRESSED)
|
|
||||||
.for _curformat in ${FORMATS}
|
|
||||||
_cf=${_curformat}
|
|
||||||
.if ${_cf} != "html-split"
|
|
||||||
.for _curcomp in ${INSTALL_COMPRESSED}
|
|
||||||
_curinst+= install-${_curformat}.${_curcomp}
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build a list of install-format targets to be installed. These will be
|
# Build a list of install-format targets to be installed. These will be
|
||||||
# dependencies for the "realinstall" target.
|
# dependencies for the "realinstall" target.
|
||||||
|
|
Loading…
Reference in a new issue