Move the conditional declarations of ICOMPRESS_CMD and ICOMPRESS_EXT

to before they are used in .for loops and .SUFFIXES lists, or it
doesn't work!  Without this, 'make all' doesn't gzip the result as the
generated 'all' target doesn't seem to be defined completely.
This commit is contained in:
Peter Wemm 1997-03-12 06:24:52 +00:00
parent af73e64503
commit a53988f831
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23762

View File

@ -1,4 +1,4 @@
# $Id: bsd.info.mk,v 1.31 1997/02/22 13:56:09 peter Exp $
# $Id: bsd.info.mk,v 1.32 1997/03/08 23:46:53 wosch Exp $
#
# The include file <bsd.info.mk> handles installing GNU (tech)info files.
# Texinfo is a documentation system that uses a single source
@ -77,6 +77,8 @@ INFODIRFILE?= dir
INFOTMPL?= ${INFODIR}/dir-tmpl
INSTALLINFO?= install-info
INFOSECTION?= Miscellaneous
ICOMPRESS_CMD?= ${COMPRESS_CMD}
ICOMPRESS_EXT?= ${COMPRESS_EXT}
.MAIN: all
@ -102,9 +104,6 @@ all: ${IFILES} _SUBDIR
all:
.endif
ICOMPRESS_CMD?= ${COMPRESS_CMD}
ICOMPRESS_EXT?= ${COMPRESS_EXT}
.for x in ${INFO:S/$/.info/g}
${x:S/$/${ICOMPRESS_EXT}/}: ${x}
${ICOMPRESS_CMD} ${.ALLSRC} > ${.TARGET}