From ed70b5d604c8a0d1239d5d2bac267d98fbdbd707 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2012 21:38:19 -0400 Subject: Update packaging to SPF 2.0. --- (limited to 'build') 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 -- cgit v0.9.1