c++tools: Fix (an) install issue
authorNathan Sidwell <nathan@acm.org>
Wed, 16 Dec 2020 13:14:57 +0000 (05:14 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 16 Dec 2020 13:19:06 +0000 (05:19 -0800)
This fixes installers that don't understand -p.

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

c++tools/Makefile.in

index 49b7fae1526f4270c65ec8f9c24fbe5184eba78a..4ec1419fa5b83da601a96b2b3b0bbae8fd82e143 100644 (file)
@@ -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