source: rtems/contrib/crossrpms/rtems4.10/gdb.am @ d09e7fc

4.104.115
Last change on this file since d09e7fc was 5487ae7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 31, 2009 at 11:24:42 AM

Add self-deps.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1EXTRA_DIST += gdb-sources.add
2
3GDB_OPTS =
4
5GDB_SUBPACKAGES = $(top_srcdir)/common/common.add
6GDB_SUBPACKAGES += $(top_srcdir)/gdb/gdb.add
7GDB_SUBPACKAGES += $(top_srcdir)/gdb/prep.add
8GDB_SUBPACKAGES += $(top_srcdir)/gdb/build.add
9GDB_SUBPACKAGES += $(top_srcdir)/gdb/install.add
10GDB_SUBPACKAGES += $(top_srcdir)/gdb/rpm-install.add
11GDB_SUBPACKAGES += $(top_srcdir)/common/clean.add
12GDB_SUBPACKAGES += $(top_srcdir)/gdb/target-gdb.add
13GDB_SUBPACKAGES += $(top_srcdir)/gdb/base-gdb.add
14
15$(TARGET)-gdb.spec.in: $(GDB_SUBPACKAGES) Makefile.am $(srcdir)/gdb-sources.add $(srcdir)/../gdb.am
16        cat $(GDB_SUBPACKAGES) | sed \
17          -e "/[@]SOURCES[@]/r $(srcdir)/gdb-sources.add" \
18          -e "/[@]SOURCES[@]/d" \
19          -e "s/[@]GDB_VERS[@]/$(GDB_VERS)/g" \
20          -e "s/[@]GDB_PKGVERS[@]/$(GDB_PKGVERS)/g" \
21          -e "s/[@]GDB_RPMREL[@]/$(GDB_RPMREL)%{?dist}/g" \
22          -e "/--with-sysroot/d" \
23          | $(MKSPEC0) > $(TARGET)-gdb.spec.in
24CLEANFILES += $(TARGET)-gdb.spec.in
25
26@rpmprefix@$(TARGET)-gdb.spec: $(TARGET)-gdb.spec.in
27        $(MKSPEC) $(TARGET)-gdb.spec.in | $(SPECSTRIP) $(GDB_OPTS) > $@
28CLEANFILES += @rpmprefix@$(TARGET)-gdb.spec
29noinst_DATA += @rpmprefix@$(TARGET)-gdb.spec
30
31EXTRA_DIST += $(GDB_SUBPACKAGES)
Note: See TracBrowser for help on using the repository browser.