diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-10-22 11:07:28 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-10-22 11:07:28 +0000 |
commit | 0ca7f2320a17bf2a3b387cf420b8be172a8ed7e3 (patch) | |
tree | 45984c63c18deb141ae22a89a6177ab1a9a9f510 /openwrt/docs/buildroot-documentation.html | |
parent | 6f314594621b05c9804035986a5cec3432d00dc4 (diff) |
document package makefile format changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2226 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/docs/buildroot-documentation.html')
-rw-r--r-- | openwrt/docs/buildroot-documentation.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/openwrt/docs/buildroot-documentation.html b/openwrt/docs/buildroot-documentation.html index 92628881d..ede3796a6 100644 --- a/openwrt/docs/buildroot-documentation.html +++ b/openwrt/docs/buildroot-documentation.html @@ -478,7 +478,7 @@ foo-compile: bar-compile 18 19 $(eval $(call PKG_template,FOO,foo,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 20 - 21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared + 21 $(PKG_BUILD_DIR)/.configured: 22 (cd $(PKG_BUILD_DIR); \ 23 $(TARGET_CONFIGURE_OPTS) \ 24 CFLAGS="$(TARGET_CFLAGS)" \ @@ -587,6 +587,16 @@ foo-compile: bar-compile recursevily strip all binaries and libraries. Finally <code>IPKG_BUILD</code> is called to create the package.</p> + <p>If you want other targets to be executed at <code>compile</code>, + <code>install</code> or <code>clean</code> time (e.g. for installing + a library into the staging dir), just create the targets (usually + <code>install-dev</code> and <code>uninstall-dev</code>) and enable + them like this: +<pre> +compile-targets: install-dev +clean-targets: uninstall-dev +</pre> + <h3>Conclusion</h3> <p>As you can see, adding a software to buildroot is simply a |