From 5a5b9a46d63d8d494a89ad9ce4813da7081077e5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 23 Apr 2012 00:40:21 -0400 Subject: Add expat build makefile example to opkhelper(7). --- 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 -- cgit v0.9.1