* Makefile.in (install): Depend upon installdirs. Use
mkinstalldirs to build $(oldincludedir). (installdirs): New target.
This commit is contained in:
parent
fab3dd2d3a
commit
9b31e6f533
2 changed files with 22 additions and 14 deletions
|
@ -1,5 +1,9 @@
|
||||||
Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
|
Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in (install): Depend upon installdirs. Use
|
||||||
|
mkinstalldirs to build $(oldincludedir).
|
||||||
|
(installdirs): New target.
|
||||||
|
|
||||||
* elflink.h (elf_link_add_object_symbols): Don't call check_relocs
|
* elflink.h (elf_link_add_object_symbols): Don't call check_relocs
|
||||||
if this is a debugging section which we are stripping.
|
if this is a debugging section which we are stripping.
|
||||||
|
|
||||||
|
|
|
@ -533,7 +533,7 @@ stamp-ofiles: Makefile
|
||||||
esac ; \
|
esac ; \
|
||||||
done ; \
|
done ; \
|
||||||
echo $$f > tofiles
|
echo $$f > tofiles
|
||||||
$(srcdir)/../move-if-change tofiles ofiles
|
$(SHELL) $(srcdir)/../move-if-change tofiles ofiles
|
||||||
touch stamp-ofiles
|
touch stamp-ofiles
|
||||||
|
|
||||||
ofiles: stamp-ofiles ; @true
|
ofiles: stamp-ofiles ; @true
|
||||||
|
@ -551,7 +551,7 @@ stamp-piclist: ofiles
|
||||||
else \
|
else \
|
||||||
cp ofiles tpiclist; \
|
cp ofiles tpiclist; \
|
||||||
fi
|
fi
|
||||||
$(srcdir)/../move-if-change tpiclist piclist
|
$(SHELL) $(srcdir)/../move-if-change tpiclist piclist
|
||||||
touch stamp-piclist
|
touch stamp-piclist
|
||||||
|
|
||||||
piclist: stamp-piclist ; @true
|
piclist: stamp-piclist ; @true
|
||||||
|
@ -713,7 +713,8 @@ roll:
|
||||||
#
|
#
|
||||||
force:
|
force:
|
||||||
|
|
||||||
install: $(ALLLIBS)
|
.PHONY: install installdirs
|
||||||
|
install: $(ALLLIBS) installdirs
|
||||||
for f in $(ALLLIBS); do \
|
for f in $(ALLLIBS); do \
|
||||||
if [ "$$f" = "stamp-tshlink" ]; then \
|
if [ "$$f" = "stamp-tshlink" ]; then \
|
||||||
continue; \
|
continue; \
|
||||||
|
@ -738,13 +739,16 @@ install: $(ALLLIBS)
|
||||||
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
|
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
|
||||||
$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
|
$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
|
||||||
-if test -z "$(oldincludedir)"; then true; else \
|
-if test -z "$(oldincludedir)"; then true; else \
|
||||||
test -d $(oldincludedir) || mkdir $(oldincludedir); \
|
$(SHELL) $(srcdir)/../mkinstalldirs $(oldincludedir); \
|
||||||
$(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \
|
$(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \
|
||||||
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \
|
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \
|
||||||
$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(oldincludedir)/bfdlink.h; \
|
$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(oldincludedir)/bfdlink.h; \
|
||||||
fi
|
fi
|
||||||
$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
|
||||||
|
|
||||||
|
installdirs: $(srcdir)/../mkinstalldirs
|
||||||
|
$(SHELL) $(srcdir)/../mkinstalldirs $(libdir) $(includedir)
|
||||||
|
|
||||||
Makefile: Makefile.in config.status
|
Makefile: Makefile.in config.status
|
||||||
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
@ -773,7 +777,7 @@ config.status: configure configure.host config.bfd VERSION
|
||||||
$(DEP) -f .dep2a $(ALL_CFLAGS) $?
|
$(DEP) -f .dep2a $(ALL_CFLAGS) $?
|
||||||
sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
|
sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
|
||||||
rm -f .dep2a
|
rm -f .dep2a
|
||||||
$(srcdir)/../move-if-change .dep2 .dep1
|
$(SHELL) $(srcdir)/../move-if-change .dep2 .dep1
|
||||||
|
|
||||||
dep.sed: dep-in.sed config.status
|
dep.sed: dep-in.sed config.status
|
||||||
sed <$(srcdir)/dep-in.sed >dep.sed \
|
sed <$(srcdir)/dep-in.sed >dep.sed \
|
||||||
|
@ -784,12 +788,12 @@ dep.sed: dep-in.sed config.status
|
||||||
dep: .dep
|
dep: .dep
|
||||||
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
|
||||||
cat .dep >> tmp-Makefile
|
cat .dep >> tmp-Makefile
|
||||||
$(srcdir)/../move-if-change tmp-Makefile Makefile
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
|
||||||
|
|
||||||
dep-in: .dep
|
dep-in: .dep
|
||||||
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
|
||||||
cat .dep >> tmp-Makefile.in
|
cat .dep >> tmp-Makefile.in
|
||||||
$(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
|
||||||
|
|
||||||
host-aout.o: Makefile
|
host-aout.o: Makefile
|
||||||
|
|
||||||
|
@ -807,7 +811,7 @@ $(BFD_H): stmp-bfd.h ; @true
|
||||||
stmp-bfd.h: bfd-in3.h
|
stmp-bfd.h: bfd-in3.h
|
||||||
rm -f bfd-tmp.h
|
rm -f bfd-tmp.h
|
||||||
cp bfd-in3.h bfd-tmp.h
|
cp bfd-in3.h bfd-tmp.h
|
||||||
$(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
|
$(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
|
||||||
rm -f bfd-tmp.h
|
rm -f bfd-tmp.h
|
||||||
touch stmp-bfd.h
|
touch stmp-bfd.h
|
||||||
|
|
||||||
|
@ -818,26 +822,26 @@ bfd-in3.h: bfd-in2.h config.status
|
||||||
headers:
|
headers:
|
||||||
(cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
|
(cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
|
||||||
cp $(docdir)/bfd.h bfd-in2.h-new
|
cp $(docdir)/bfd.h bfd-in2.h-new
|
||||||
$(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
|
$(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
|
||||||
cp $(docdir)/libbfd.h libbfd.h-new
|
cp $(docdir)/libbfd.h libbfd.h-new
|
||||||
$(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
$(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
||||||
cp $(docdir)/libcoff.h libcoff.h-new
|
cp $(docdir)/libcoff.h libcoff.h-new
|
||||||
$(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
$(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
||||||
|
|
||||||
# The rules for the generated header files are here so that people can
|
# The rules for the generated header files are here so that people can
|
||||||
# type `make bfd-in2.h' if they remove it. They are not run by default.
|
# type `make bfd-in2.h' if they remove it. They are not run by default.
|
||||||
$(srcdir)/bfd-in2.h:
|
$(srcdir)/bfd-in2.h:
|
||||||
(cd $(docdir); $(MAKE) bfd.h $(FLAGS_TO_PASS))
|
(cd $(docdir); $(MAKE) bfd.h $(FLAGS_TO_PASS))
|
||||||
cp $(docdir)/bfd.h bfd-in2.h-new
|
cp $(docdir)/bfd.h bfd-in2.h-new
|
||||||
$(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
|
$(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
|
||||||
$(srcdir)/libbfd.h:
|
$(srcdir)/libbfd.h:
|
||||||
(cd $(docdir); $(MAKE) libbfd.h $(FLAGS_TO_PASS))
|
(cd $(docdir); $(MAKE) libbfd.h $(FLAGS_TO_PASS))
|
||||||
cp $(docdir)/libbfd.h libbfd.h-new
|
cp $(docdir)/libbfd.h libbfd.h-new
|
||||||
$(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
$(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
||||||
$(srcdir)/libcoff.h:
|
$(srcdir)/libcoff.h:
|
||||||
(cd $(docdir); $(MAKE) libcoff.h $(FLAGS_TO_PASS))
|
(cd $(docdir); $(MAKE) libcoff.h $(FLAGS_TO_PASS))
|
||||||
cp $(docdir)/libcoff.h libcoff.h-new
|
cp $(docdir)/libcoff.h libcoff.h-new
|
||||||
$(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
$(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
||||||
|
|
||||||
bfd.info:
|
bfd.info:
|
||||||
(cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS))
|
(cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS))
|
||||||
|
|
Loading…
Reference in a new issue