diff mbox series

c++tools: Fix (an) install issue

Message ID 476fff64-691d-be40-57ff-8e2a485d0fe2@acm.org
State New
Headers show
Series c++tools: Fix (an) install issue | expand

Commit Message

Nathan Sidwell Dec. 16, 2020, 1:18 p.m. UTC
David reported an AIX problem, which I think this addresses.  I've not 
looked at pr98314 yet but there's certainly overlap

This fixes installers that don't understand -p.

	c++tools/
         (install): Do not use -p, use mkinstalldirs.
         (clean): Fix typo.

pushing to trunk
diff mbox series

Patch

diff --git i/c++tools/Makefile.in w/c++tools/Makefile.in
index 49b7fae1526..4ec1419fa5b 100644
--- i/c++tools/Makefile.in
+++ w/c++tools/Makefile.in
@@ -38,7 +38,7 @@  mostlyclean::
 	rm -f $(MAPPER.O)
 
 clean::
-	rm -f c++-mapper-server$(exeext)
+	rm -f g++-mapper-server$(exeext)
 
 distclean::
 	rm -f config.log config.status config.h
@@ -86,10 +86,11 @@  g++-mapper-server$(exeext): $(MAPPER.O) $(CODYLIB)
 all::../gcc/g++-mapper-server$(exeext)
 
 ../gcc/g++-mapper-server$(exeext): g++-mapper-server$(exeext)
-	$(INSTALL) -p $< $@
+	$(INSTALL) $< $@
 
 install::
-	$(INSTALL) -p g++-mapper-server$(exeext) $(DESTDIR)$(libexecsubdir)
+	$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(libexecsubdir)
+	$(INSTALL) g++-mapper-server$(exeext) $(DESTDIR)$(libexecsubdir)
 
 endif