summaryrefslogtreecommitdiffstats
path: root/contrib/groff/src/roff/grog/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/src/roff/grog/Makefile.sub')
-rw-r--r--contrib/groff/src/roff/grog/Makefile.sub9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/groff/src/roff/grog/Makefile.sub b/contrib/groff/src/roff/grog/Makefile.sub
index 85e2ad5..d199ac9 100644
--- a/contrib/groff/src/roff/grog/Makefile.sub
+++ b/contrib/groff/src/roff/grog/Makefile.sub
@@ -3,7 +3,14 @@ CLEANADD=grog
all: grog
-grog: grog.pl grog.sh
+grog: grog.sh
+ rm -f $@
+ sed -e "s|@g@|$(g)|g" \
+ -e "s|@VERSION@|$(version)$(revision)|" \
+ -e $(SH_SCRIPT_SED_CMD) $(srcdir)/grog.sh >$@
+ chmod +x $@
+
+grog.old: grog.pl grog.sh
if test -n "$(PERLPATH)" && test -f "$(PERLPATH)"; then \
rm -f $@; \
sed -e "s|/usr/bin/perl|$(PERLPATH)|" \
OpenPOWER on IntegriCloud