all:
-# Generate TARG_VALS_H for newlib/libgloss using devo and build tree.
+# Generate nltvals.def for newlib/libgloss using devo and build tree.
# This file is shipped with distributions so we build in the source dir.
-# This is built in srcdir so putting dependencies here is risky.
# Use `make headers' to rebuild.
-headers: nltvals.def
+# Note: If gdb releases begin to contain target header files (not a good idea,
+# but if they did ...), targ-vals.def coud be generated at build time.
+# An alternative is to slurp in the tables at runtime.
.PHONY: headers
-
-# Note: If gdb releases begin to contain target header files, generate
-# targ-vals.def at build time.
-
-nltvals.def: Makefile gennltvals.sh gentvals.sh
+headers:
rootme=`pwd` ; \
cd $(srcdir) ; \
rm -f nltvals.new ; \
clean:
rm -f *.[oa] *~ core
- rm -f $(ALL)
distclean mostlyclean maintainer-clean realclean: clean
rm -f TAGS
rm -f Makefile config.cache config.log config.status
- rm -f config.h stamp-h
+ rm -f cconfig.h config.h stamp-h
# Dummy target to force execution of dependent targets.
force:
# Copy the files into directories where they will be run.
-install:
+install: install-man
install-man: installdirs
n=`echo run | sed '$(program_transform_name)'`; \
- $(INSTALL_DATA) $(srcdir)/run.1 $(man1dir)/$$n.1
+ $(INSTALL_DATA) $(srcdir)/run.1 $(DESTDIR)$(man1dir)/$$n.1
installdirs:
- $(SHELL) $(srcdir)/../../mkinstalldirs $(man1dir)
+ $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir)
Makefile: Makefile.in config.status
$(SHELL) ./config.status