[01141c5] | 1 | EXTRA_DIST += $(srcdir)/../rtems-prep.add |
---|
| 2 | EXTRA_DIST += $(srcdir)/rtems-sources.add |
---|
| 3 | |
---|
| 4 | CPUKIT_OPTS = |
---|
| 5 | |
---|
| 6 | CPUKIT_SUBPACKAGES = $(top_srcdir)/common/common.add |
---|
| 7 | CPUKIT_SUBPACKAGES += $(top_srcdir)/cpukit/cpukit.add |
---|
| 8 | CPUKIT_SUBPACKAGES += $(top_srcdir)/cpukit/prep.add |
---|
| 9 | CPUKIT_SUBPACKAGES += $(top_srcdir)/cpukit/build.add |
---|
| 10 | CPUKIT_SUBPACKAGES += $(top_srcdir)/cpukit/install.add |
---|
| 11 | CPUKIT_SUBPACKAGES += $(top_srcdir)/cpukit/rpm-install.add |
---|
| 12 | CPUKIT_SUBPACKAGES += $(top_srcdir)/common/clean.add |
---|
| 13 | CPUKIT_SUBPACKAGES += $(top_srcdir)/cpukit/target-cpukit.add |
---|
| 14 | |
---|
| 15 | $(TARGET)-cpukit.spec.in: $(CPUKIT_SUBPACKAGES) Makefile.am $(srcdir)/cpukit-sources.add $(srcdir)/../cpukit-prep.add |
---|
| 16 | cat $(CPUKIT_SUBPACKAGES) | sed \ |
---|
| 17 | -e "/[@]SOURCES[@]/r $(srcdir)/cpukit-sources.add" \ |
---|
| 18 | -e "/[@]SOURCES[@]/d" \ |
---|
| 19 | -e "/[@]PREP[@]/r $(srcdir)/../cpukit-prep.add" \ |
---|
| 20 | -e "/[@]PREP[@]/d" \ |
---|
| 21 | -e "s/[@]CPUKIT_VERS[@]/$(CPUKIT_VERS)/g" \ |
---|
| 22 | -e "s/[@]CPUKIT_PKGVERS[@]/$(CPUKIT_PKGVERS)/g" \ |
---|
| 23 | -e "s/[@]CPUKIT_RPMREL[@]/$(CPUKIT_RPMREL)/g" \ |
---|
| 24 | -e "/--with-sysroot/d" \ |
---|
| 25 | -e "/[@]tool_target[@]-sys-root/d" \ |
---|
| 26 | -e "/[@]tool_target[@]-w32api-sys-root/d" \ |
---|
| 27 | | $(MKSPEC0) > $(TARGET)-cpukit.spec.in |
---|
| 28 | CLEANFILES += $(TARGET)-cpukit.spec.in |
---|
| 29 | |
---|
| 30 | @rpmprefix@$(TARGET)-cpukit.spec: $(TARGET)-cpukit.spec.in |
---|
| 31 | $(MKSPEC) $(TARGET)-cpukit.spec.in | $(SPECSTRIP) $(CPUKIT_OPTS) > $@ |
---|
| 32 | CLEANFILES += @rpmprefix@$(TARGET)-cpukit.spec |
---|
| 33 | noinst_DATA += @rpmprefix@$(TARGET)-cpukit.spec |
---|
| 34 | |
---|
| 35 | EXTRA_DIST += $(CPUKIT_SUBPACKAGES) |
---|