summaryrefslogtreecommitdiffstats
path: root/specs
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-03 21:15:17 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-03 21:15:17 (EDT)
commitc0829feba9eb7400c96dc9c9479c0e338170aa4e (patch)
treef35e88329bc390505e33da5dd231ce8c8537e596 /specs
parent6bc91225e3c1a0611e8f7d76c5db93b1d98dd906 (diff)
Update example files.
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