summaryrefslogtreecommitdiffstats
path: root/man/opkhelper.7.in
diff options
context:
space:
mode:
Diffstat (limited to 'man/opkhelper.7.in')
-rw-r--r--man/opkhelper.7.in28
1 files changed, 27 insertions, 1 deletions
diff --git a/man/opkhelper.7.in b/man/opkhelper.7.in
index 8a3f870..1b564e1 100644
--- a/man/opkhelper.7.in
+++ b/man/opkhelper.7.in
@@ -1,6 +1,6 @@
.\" Author: Patrick "P. J." McDermott
.TH opkhelper 7 \
-"2012-04-22" "@@PACKAGE@@-@@VERSION@@" "opkg Build Helper Tools"
+"2012-04-23" "@@PACKAGE@@-@@VERSION@@" "opkg Build Helper Tools"
.SH NAME
opkhelper \- opkg build helper tools
@@ -188,6 +188,32 @@ Host system GNU system type
.B STRIP
"strip" with cross toolchain prefix, if any
+.SH EXAMPLES
+The following is an example
+.I build
+makefile, showing the use of opkhelper tools and environment variables:
+.sp
+.nf
+#! /usr/bin/make -f
+
+PKGS = xmlwf xmlwf-doc libexpat.1 libexpat.1-dev libexpat.1-dbg
+
+$(PKGS): expat.buildstamp
+
+\a.SILENT: expat.buildstamp
+expat.buildstamp:
+ cd src && \\
+ ./configure --prefix=/usr \\
+ --build=$${OH_BUILD_ARCH_GNU} --host=$${OH_HOST_ARCH_GNU} && \\
+ make && make DESTDIR=$$(pwd)/../dest install
+ oh-strip -gl /usr/lib/libexpat.so.1.6.0
+ oh-installfiles $(PKGS)
+ oh-installdocs libexpat.1
+ oh-gencontrol $(PKGS)
+ oh-buildopk $(PKGS)
+ touch expat.buildstamp
+.fi
+
.SH COPYRIGHT
Copyright (C) 2012 Patrick "P. J." McDermott
.sp