summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-02 21:38:19 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-02 21:39:39 (EDT)
commited70b5d604c8a0d1239d5d2bac267d98fbdbd707 (patch)
tree8f1e2c2cf182092d260cd8a91f20d18997d8a6cb /build
parent4f572114d2a7fd0ac06ac1548959d3d619baf96b (diff)
Update packaging to SPF 2.0.
Diffstat (limited to 'build')
-rwxr-xr-xbuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/build b/build
index 6cc5a80..d64d859 100755
--- a/build
+++ b/build
@@ -1,18 +1,28 @@
#! /usr/bin/make -f
-PKGS = xmlwf xmlwf-doc libexpat.1 libexpat.1-dev libexpat.1-dbg
+build-arch:
+ cd src && \
+ ./configure --prefix=/usr \
+ --build=$${OB_BUILD_ARCH_GNU} --host=$${OB_HOST_ARCH_GNU} && \
+ make
-$(PKGS): expat.buildstamp
+install-arch:
+ cd src && \
+ make DESTDIR="$$(pwd)/../dest" install-exec && \
+ cd ..
+ oh-strip -g
+ oh-installfiles -B
-.SILENT: expat.buildstamp
-expat.buildstamp:
+build-indep:
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
+ ./configure --prefix=/usr
+
+install-indep:
+ cd src && \
+ make DESTDIR="$$(pwd)/../dest" install-data && \
+ cd ..
+ oh-installfiles -A
+
+build: build-arch build-indep
+
+install: install-arch install-indep