From: Hebbar <gururajakr@sanyo.co.in>
To: buildroot@busybox.net
Subject: [Buildroot] Need help adding/updating Makefile.autotools.in
Date: Wed, 7 May 2008 17:07:27 -0700 (PDT) [thread overview]
Message-ID: <17117162.post@talk.nabble.com> (raw)
In-Reply-To: <17117160.post@talk.nabble.com>
Sorry, Below is the correct patch
--- Makefile.autotools.in_orig 2008-04-08 16:10:24.000000000 -0400
+++ Makefile.autotools.in 2008-05-04 20:36:14.000000000 -0400
@@ -43,10 +43,14 @@
# install the package to the staging directory
# FOO_INSTALL_TARGET [YES/NO, default YES]
# install the package to the target directory
+# FOO_INSTALL_DATA [YES/NO, default YES]
+# install the data from package to the target directory
# FOO_INSTALL_STAGING_OPT [default DESTDIR=$(STAGING_DIR)/usr install]
# arguments passed to <make> while installing to the staging directory
# FOO_INSTALL_TARGET_OPT [default DESTDIR=$(TARGET_DIR)/usr install-exec]
# arguments passed to <make> while installing to the target directory
+# FOO_INSTALL_TARGET_DATA [default DESTDIR=$(TARGET_DIR)/usr install-data]
+# arguments passed to <make> while installing data to the target directory
# FOO_CLEAN_OPT [default clean]
# arguments passed to <make> while installing to the staging directory
# FOO_UNINSTALL_STAGING_OPT [default DESTDIR=$(STAGING_DIR)/usr uninstall]
@@ -68,7 +72,7 @@
#
## The following variables contain targets that can be overriden
#
-# FOO_TARGET_INSTALL_TARGET FOO_TARGET_INSTALL_STAGING FOO_TARGET_BUILD
+# FOO_TARGET_INSTALL_TARGET FOO_TARGET_INSTALL_DATA
FOO_TARGET_INSTALL_STAGING FOO_TARGET_BUILD
# FOO_TARGET_CONFIGURE FOO_TARGET_PATCH FOO_TARGET_EXTRACT
FOO_TARGET_SOURCE
# FOO_TARGET_UNINSTALL FOO_TARGET_CLEAN FOO_TARGET_DIRCLEAN
#
@@ -232,6 +244,12 @@ $(BUILD_DIR)/%/.stamp_target_installed:
done)
touch $@
+# Install to target dir
+$(BUILD_DIR)/%/.stamp_target_data_installed:
+ $(call MESSAGE,"Installing data to target")
+ $($(PKG)_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install-data -C
$(@D)/$($(PKG)_SUBDIR)
+ touch $@
+
$(BUILD_DIR)/%/.stamp_cleaned:
$(call MESSAGE,"Cleaning up")
-$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_UNINSTALL_STAGING_OPT) -C
$(@D)/$($(PKG)_SUBDIR)
@@ -278,8 +296,10 @@ $(2)_MAKE_ENV ?=
$(2)_MAKE_OPT ?=
$(2)_INSTALL_STAGING ?= NO
$(2)_INSTALL_TARGET ?= YES
+$(2)_INSTALL_DATA ?= YES
$(2)_INSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) install
$(2)_INSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) install-exec
+$(2)_INSTALL_TARGET_DATA ?= DESTDIR=$$(TARGET_DIR) install-data
$(2)_CLEAN_OPT ?= clean
$(2)_UNINSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) uninstall
$(2)_UNINSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) uninstall
@@ -288,6 +308,7 @@ $(2)_DIR_PREFIX = $(if $(3),$(3),$(TO
# define sub-target stamps
+$(2)_TARGET_INSTALL_DATA = $$($(2)_DIR)/.stamp_target_data_installed
$(2)_TARGET_INSTALL_TARGET = $$($(2)_DIR)/.stamp_target_installed
$(2)_TARGET_INSTALL_STAGING = $$($(2)_DIR)/.stamp_staging_installed
$(2)_TARGET_BUILD = $$($(2)_DIR)/.stamp_built
@@ -314,6 +335,12 @@ else
$(1)-install-target:
endif
+ifeq ($$($(2)_INSTALL_DATA),YES)
+$(1)-install-data: $(1)-build $$($(2)_TARGET_INSTALL_DATA)
+else
+$(1)-install-data:
+endif
+
ifeq ($$($(2)_INSTALL_STAGING),YES)
$(1)-install-staging: $(1)-build $$($(2)_TARGET_INSTALL_STAGING)
else
@@ -350,6 +377,7 @@ $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)
# define the PKG variable for all targets, containing the
# uppercase package variable prefix
+$$($(2)_TARGET_INSTALL_DATA) PKG=$(2)
$$($(2)_TARGET_INSTALL_TARGET): PKG=$(2)
$$($(2)_TARGET_INSTALL_STAGING): PKG=$(2)
$$($(2)_TARGET_BUILD): PKG=$(2)
--
View this message in context: http://www.nabble.com/Need-help-adding-updating-Makefile.autotools.in-tp17117160p17117162.html
Sent from the BuildRoot mailing list archive at Nabble.com.
prev parent reply other threads:[~2008-05-08 0:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 0:05 [Buildroot] Need help adding/updating Makefile.autotools.in Hebbar
2008-05-08 0:07 ` Hebbar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17117162.post@talk.nabble.com \
--to=gururajakr@sanyo.co.in \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.