forked from Imagelibrary/rtems
Use libs.add target-libs.add
This commit is contained in:
@@ -8,15 +8,25 @@ CLEANFILES =
|
|||||||
FREEBSD_VERS = 5.2.1
|
FREEBSD_VERS = 5.2.1
|
||||||
FREEBSD_RPMREL = 0.20060209.1
|
FREEBSD_RPMREL = 0.20060209.1
|
||||||
|
|
||||||
$(TARGET)-libs.spec: libs.spec.in
|
LIBS_SUBPACKAGES = $(top_builddir)/common/common.add
|
||||||
sed -e "/[@]INSTALL_POST[@]/r ../common/installpost.add" \
|
LIBS_SUBPACKAGES += libs.add
|
||||||
-e "/[@]INSTALL_POST[@]/d" \
|
LIBS_SUBPACKAGES += ../gcc/rpm-install.add
|
||||||
-e "/[@]FIND_REQPROV[@]/r ../common/find-reqprov.add" \
|
LIBS_SUBPACKAGES += $(top_builddir)/common/clean.add
|
||||||
-e "/[@]FIND_REQPROV[@]/d" \
|
LIBS_SUBPACKAGES += target-libs.add
|
||||||
-e "s/[@]tool_target[@]/$(TARGET)/g" \
|
|
||||||
|
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES)
|
||||||
|
cat $(LIBS_SUBPACKAGES) | sed \
|
||||||
|
-e "s,[@]_prefix[@],$(prefix),g" \
|
||||||
|
-e "s,[@]rpmprefix[@],$(rpmprefix),g" \
|
||||||
|
> $(TARGET)-libs.spec.in
|
||||||
|
CLEANFILES += $(TARGET)-libs.spec.in
|
||||||
|
|
||||||
|
$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
||||||
|
sed \
|
||||||
|
-e "s/@tool_target@/$(TARGET)/g" \
|
||||||
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
||||||
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \
|
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \
|
||||||
$(srcdir)/libs.spec.in > $@
|
$(srcdir)/$(TARGET)-libs.spec.in > $@
|
||||||
CLEANFILES += $(TARGET)-libs.spec
|
CLEANFILES += $(TARGET)-libs.spec
|
||||||
noinst_DATA += $(TARGET)-libs.spec
|
noinst_DATA += $(TARGET)-libs.spec
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user