diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-02-24 08:16:26 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-02-24 08:16:26 +0000 |
commit | e56ac5c3a397926b0569e691a16b2c58dafc11c8 (patch) | |
tree | 3b4440f93f22ddfedc87b8383ee4fd8181468cbb /gdb/Makefile.in | |
parent | b0b1b869c70b8a474fc098af5399f1d21cc5dabd (diff) | |
download | gdb-e56ac5c3a397926b0569e691a16b2c58dafc11c8.zip gdb-e56ac5c3a397926b0569e691a16b2c58dafc11c8.tar.gz gdb-e56ac5c3a397926b0569e691a16b2c58dafc11c8.tar.bz2 |
Only install GDBtk files when GDBtk is being built.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 3982eab..ae268f6 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -161,6 +161,8 @@ SUBDIR_MI_INITS = \ SUBDIR_MI_LDFLAGS= SUBDIR_MI_CFLAGS= \ -DUI_OUT=1 +SUBDIR_MI_INSTALL= +SUBDIR_MI_UNINSTALL= # Opcodes currently live in one of two places. Either they are in the # opcode library, typically ../opcodes, or they are in a header file @@ -220,6 +222,8 @@ ENABLE_GDBTK= @ENABLE_GDBTK@ LIBGUI = @LIBGUI@ GUI_CFLAGS_X = @GUI_CFLAGS_X@ IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X) +SUBDIR_GDBTK_INSTALL= install-gdbtk +SUBDIR_GDBTK_UNINSTALL= CONFIG_OBS= @CONFIG_OBS@ CONFIG_SRCS= @CONFIG_SRCS@ @@ -227,6 +231,8 @@ CONFIG_DEPS= @CONFIG_DEPS@ CONFIG_INITS= @CONFIG_INITS@ CONFIG_LDFLAGS = @CONFIG_LDFLAGS@ ENABLE_CFLAGS= @ENABLE_CFLAGS@ +CONFIG_INSTALL = @CONFIG_INSTALL@ +CONFIG_UNINSTALL = @CONFIG_UNINSTALL@ # -I. for config files. # -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also. @@ -665,7 +671,7 @@ gdb.z:gdb.1 # time it takes for make to check that all is up to date. # install-only is intended to address that need. install: all install-only -install-only: +install-only: $(CONFIG_INSTALL) transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ @@ -675,21 +681,9 @@ install-only: fi ; \ $(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \ $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1 - $(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl ; \ - $(SHELL) $(srcdir)/../mkinstalldirs \ - $(datadir)/gdbtcl/images \ - $(datadir)/gdbtcl/images2 ; \ - $(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl/help \ - $(datadir)/gdbtcl/help/images \ - $(datadir)/gdbtcl/help/trace ; \ - cd $(srcdir)/gdbtk/library ; \ - for i in *.tcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif; \ - do \ - $(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \ - done ; @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do -uninstall: force +uninstall: force $(CONFIG_UNINSTALL) transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ @@ -1257,6 +1251,20 @@ findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \ fork-child.o: fork-child.c gdb_wait.h $(defs_h) $(gdbcore_h) \ $(inferior_h) target.h terminal.h gdbthread.h gdb_string.h +install-gdbtk: + $(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl ; \ + $(SHELL) $(srcdir)/../mkinstalldirs \ + $(datadir)/gdbtcl/images \ + $(datadir)/gdbtcl/images2 ; \ + $(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl/help \ + $(datadir)/gdbtcl/help/images \ + $(datadir)/gdbtcl/help/trace ; \ + cd $(srcdir)/gdbtk/library ; \ + for i in *.tcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif; \ + do \ + $(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \ + done ; + gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico $(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o |