(install-common): Install protoize and related files if they were compiled.
authorRichard Stallman <rms@gnu.org>
Tue, 4 Aug 1992 04:22:13 +0000 (04:22 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 4 Aug 1992 04:22:13 +0000 (04:22 +0000)
(install-proto): Target deleted.

From-SVN: r1760

gcc/Makefile.in

index 30f8126c1512327a6354f4b1863cc4b32bb10a91..c643b915d55f9efcdca6a249f6da565ae4194e18 100644 (file)
@@ -1391,6 +1391,17 @@ install-common: native install-dir xgcc $(srcdir)/g++ $(srcdir)/c++ $(EXTRA_PART
          ln $(bindir)/gcc $(bindir)/gcc-$(target)-1; \
          mv $(bindir)/gcc-$(target)-1 $(bindir)/gcc-$(target); \
        fi
+# Install protoize if it was compiled.
+       if [ -f protoize ]; \
+       then \
+           rm -f $(bindir)/protoize; \
+           $(INSTALL_PROGRAM) protoize $(bindir)/protoize; \
+           rm -f $(bindir)/unprotoize; \
+           $(INSTALL_PROGRAM) unprotoize $(bindir)/unprotoize; \
+           rm -f $(libsubdir)/SYSCALLS.c.X; \
+           $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
+           chmod a-x $(libsubdir)/SYSCALLS.c.X; \
+       fi
        -rm -f $(bindir)/c++
        $(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++
        -rm -f $(bindir)/g++
@@ -1398,16 +1409,6 @@ install-common: native install-dir xgcc $(srcdir)/g++ $(srcdir)/c++ $(EXTRA_PART
        -rm -f $(libsubdir)/cpp
        $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp
 
-# Install protoize.
-install-proto: proto install-dir
-       -rm -f $(bindir)/protoize
-       $(INSTALL_PROGRAM) protoize $(bindir)/protoize
-       -rm -f $(bindir)/unprotoize
-       $(INSTALL_PROGRAM) unprotoize $(bindir)/unprotoize
-       -rm -f $(libsubdir)/SYSCALLS.c.X
-       $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X
-       chmod a-x $(libsubdir)/SYSCALLS.c.X
-
 # Install the man pages.
 install-man: install-dir $(srcdir)/gcc.1 $(srcdir)/cccp.1 $(srcdir)/g++.1
        -rm -f $(mandir)/gcc$(manext)