summaryrefslogtreecommitdiffstats
path: root/contrib/groff/grog/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/grog/Makefile.sub')
-rw-r--r--contrib/groff/grog/Makefile.sub22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/groff/grog/Makefile.sub b/contrib/groff/grog/Makefile.sub
new file mode 100644
index 0000000..5b8f089
--- /dev/null
+++ b/contrib/groff/grog/Makefile.sub
@@ -0,0 +1,22 @@
+MAN1=grog.n
+CLEANADD=grog
+
+all: grog
+
+grog: grog.pl grog.sh
+ if test -n "$(PERLPATH)" && test -f "$(PERLPATH)"; then \
+ rm -f $@; \
+ sed -e 's;/usr/bin/perl;$(PERLPATH);' $(srcdir)/grog.pl >$@; \
+ else \
+ rm -f $@; \
+ sed "$(SH_SCRIPT_SED_CMD)" $(srcdir)/grog.sh >$@; \
+ fi
+ chmod +x $@
+
+install_data: grog
+ -test -d $(bindir) || mkdir $(bindir)
+ -rm -f $(bindir)/grog
+ $(INSTALL_PROGRAM) grog $(bindir)/grog
+
+uninstall_sub:
+ -rm -f $(bindir)/grog
OpenPOWER on IntegriCloud