summaryrefslogtreecommitdiffstats
path: root/specs
diff options
context:
space:
mode:
Diffstat (limited to 'specs')
-rw-r--r--specs/source-package-format-2.0.txt25
1 files changed, 11 insertions, 14 deletions
diff --git a/specs/source-package-format-2.0.txt b/specs/source-package-format-2.0.txt
index e5267a7..321e64b 100644
--- a/specs/source-package-format-2.0.txt
+++ b/specs/source-package-format-2.0.txt
@@ -625,7 +625,7 @@ Following is an example `config` file:
ARCH_OPTS="--build=${OH_BUILD_ARCH_GNU} --host=${OH_HOST_ARCH_GNU}"
fi
- sed -e "s&@ARCH_OPTS@&${ARCH_OPTS}&" build.in > build
+ sed -e "s&@ARCH_OPTS@&${ARCH_OPTS}&" build.in >build
It detects whether the user intends to cross build the software and generates
appropriate `build` and `host` options for the software's `configure` script.
@@ -639,39 +639,36 @@ Following is an example `build.in` file:
PKG_COMMON = libopkg.1
- configure.stamp: configure
+ configure: configure.stamp
+ configure.stamp:
cd src && ./configure --prefix=/usr @ARCH_OPTS@ \
--disable-static --disable-curl --disable-ssl-curl --disable-gpg
touch $@
- build.stamp: configure.stamp
- cd src && make -j $${JOBS:-1}
+ build: build.stamp
+ build.stamp: configure
+ cd src && make
touch $@
- install-arch.stamp: build.stamp
- cd src && make DESTDIR=$${PWD}/../dest install-exec
+ install: install.stamp
+ install.stamp: build
+ cd src && make DESTDIR="$${PWD}/../dest" install
touch $@
- install-indep.stamp: build.stamp
- cd src && make DESTDIR=$${PWD}/../dest install-data
- touch $@
-
- binary-arch: install-arch.stamp
+ binary-arch: install
oh-strip -g
oh-installfiles
oh-installdocs $(PKG_COMMON)
oh-gencontrol
oh-buildopk
- binary-indep: install-indep.stamp
+ binary-indep: install
oh-installfiles
oh-installdocs $(PKG_COMMON)
oh-gencontrol
oh-buildopk
binary: binary-arch binary-indep
-
- clean:
It has the required `binary`, `binary-arch`, and `binary-indep` targets, along
with targets to configure, build, and install the packaged software. It makes