Skip to content

Commit

Permalink
Remove redundant preprocessing of the less.hlp file (#34)
Browse files Browse the repository at this point in the history
There are no placeholders in less.hlp.VER, so it's pointless to preprocess
it. Removing this step simplifies the build process a little.

This also fixes an issue with Makefile.wng: if you were building from
a release tarball and ran "make clean", you wouldn't be able to rebuild,
since less.hlp.VER isn't included in release tarballs.
  • Loading branch information
SpecLad authored and gwsw committed Jan 19, 2020
1 parent 0713eaf commit b88820d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ defines.h.in
defines.h.in~
funcs.h
help.c
less.hlp
less.man
less.nro
lessecho.man
Expand Down
2 changes: 0 additions & 2 deletions Makefile.aut
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ ${srcdir}/lesskey.nro: ${srcdir}/lesskey.nro.VER ${srcdir}/version.c
${REPLACE_VERSION} ${srcdir}/lesskey.nro.VER
${srcdir}/lessecho.nro: ${srcdir}/lessecho.nro.VER ${srcdir}/version.c
${REPLACE_VERSION} ${srcdir}/lessecho.nro.VER
${srcdir}/less.hlp: ${srcdir}/less.hlp.VER ${srcdir}/version.c
${REPLACE_VERSION} ${srcdir}/less.hlp.VER

${srcdir}/less.man: ${srcdir}/less.nro
${NROFF} ${srcdir}/less.nro >${srcdir}/less.man
Expand Down
2 changes: 1 addition & 1 deletion Makefile.wng
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ defines.h: defines.wn
funcs.h:
perl mkfuncs.pl ${LESS_SRC} > $@

help.c: less.hlp.VER
help.c: less.hlp
perl mkhelp.pl < $< > $@

${OBJ}: less.h defines.h funcs.h
Expand Down
File renamed without changes.

0 comments on commit b88820d

Please sign in to comment.