summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/autotools/automake.am
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/autotools/automake.am')
-rw-r--r--contrib/crossrpms/autotools/automake.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/crossrpms/autotools/automake.am b/contrib/crossrpms/autotools/automake.am
new file mode 100644
index 0000000000..802fe9d9dc
--- /dev/null
+++ b/contrib/crossrpms/autotools/automake.am
@@ -0,0 +1,15 @@
+AUTOMAKE_SUBPACKAGES = $(top_builddir)/common/common.add
+AUTOMAKE_SUBPACKAGES += $(top_srcdir)/autotools/automake.add
+
+automake-rtems.spec.in: $(AUTOMAKE_SUBPACKAGES) Makefile.in
+ cat $(AUTOMAKE_SUBPACKAGES) | sed \
+ -e "s/[@]AUTOMAKE_RPMREL[@]/$(AUTOMAKE_RPMREL)/" > $@
+CLEANFILES += automake-rtems.spec.in
+
+
+@rpmprefix@automake-rtems.spec: automake-rtems.spec.in
+ $(MKSPEC) automake-rtems.spec.in | $(SPECSTRIP) > $@
+CLEANFILES += @rpmprefix@automake-rtems.spec
+noinst_DATA += @rpmprefix@automake-rtems.spec
+
+EXTRA_DIST += $(AUTOMAKE_SUBPACKAGES)