summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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