aboutsummaryrefslogtreecommitdiff
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.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/groff/nroff/Makefile.sub b/contrib/groff/nroff/Makefile.sub
index 096c046c81c9..fa6bc4dcc491 100644
--- a/contrib/groff/nroff/Makefile.sub
+++ b/contrib/groff/nroff/Makefile.sub
@@ -10,8 +10,9 @@ nroff: nroff.sh
chmod +x $@
install_data: nroff
+ -test -d $(bindir) || $(mkinstalldirs) $(bindir)
-rm -f $(bindir)/$(NAMEPREFIX)nroff
- $(INSTALL_PROGRAM) nroff $(bindir)/$(NAMEPREFIX)nroff
+ $(INSTALL_SCRIPT) nroff $(bindir)/$(NAMEPREFIX)nroff
uninstall_sub:
-rm -f $(bindir)/$(NAMEPREFIX)nroff