source: rtems/contrib/crossrpms/mingw32/Makefile.am @ 78128559

4.104.114.84.95
Last change on this file since 78128559 was 78128559, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/14/06 at 17:16:45

New.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# $Id$
2
3TARGET = i686-pc-mingw32
4
5noinst_DATA =
6CLEANFILES =
7
8
9BINUTILS_VERS = 2.16.91-20060119-1
10BINUTILS_RPMREL = 0.20060214.0
11
12BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add
13BINUTILS_SUBPACKAGES += ../binutils/binutils.add
14BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add
15BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add
16BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add
17BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add
18
19$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES)
20        cat $^ | sed \
21          -e "/[@]SOURCES[@]/r ./binutils-sources.add" \
22          -e "/[@]SOURCES[@]/d" \
23          -e '/^%define _prefix.*$$/d' \
24          -e '/^%define rpmgroup.*$$/d' \
25          -e '/^%define binutils_target.*$$/d' \
26          -e "s,[@]rpmprefix[@],,g" \
27          -e "s,rtems[@]osversion[@],rtems,g" \
28          -e "s,%{rpmgroup},Development/Tools,g" \
29          > $(TARGET)-binutils.spec.in
30CLEANFILES += $(TARGET)-binutils.spec.in
31
32
33$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
34        sed \
35          -e "s/[@]tool_target[@]/$(TARGET)/g" \
36          -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
37          -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
38          -e "s,[@]PATCH0[@],," \
39          $(srcdir)/$(TARGET)-binutils.spec.in > $@
40CLEANFILES += $(TARGET)-binutils.spec
41noinst_DATA += $(TARGET)-binutils.spec
Note: See TracBrowser for help on using the repository browser.