summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-23 00:40:21 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-23 00:40:21 (EDT)
commit5a5b9a46d63d8d494a89ad9ce4813da7081077e5 (patch)
tree925cb3f5228638eb3c536313ef4c7f5afe921d12 /man
parent01766af3420236025a2e0fe7919cb2f46d2c4ade (diff)
Add expat build makefile example to opkhelper(7).
Diffstat (limited to 'man')
-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