summaryrefslogtreecommitdiffstats
path: root/contrib/groff/nroff/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/nroff/Makefile.sub')
-rw-r--r--contrib/groff/nroff/Makefile.sub17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/groff/nroff/Makefile.sub b/contrib/groff/nroff/Makefile.sub
new file mode 100644
index 0000000..096c046
--- /dev/null
+++ b/contrib/groff/nroff/Makefile.sub
@@ -0,0 +1,17 @@
+MAN1=nroff.n
+NAMEPREFIX=$(g)
+CLEANADD=nroff
+
+all: nroff
+
+nroff: nroff.sh
+ rm -f $@
+ sed "$(SH_SCRIPT_SED_CMD)" $(srcdir)/nroff.sh >$@
+ chmod +x $@
+
+install_data: nroff
+ -rm -f $(bindir)/$(NAMEPREFIX)nroff
+ $(INSTALL_PROGRAM) nroff $(bindir)/$(NAMEPREFIX)nroff
+
+uninstall_sub:
+ -rm -f $(bindir)/$(NAMEPREFIX)nroff
OpenPOWER on IntegriCloud