From c0829feba9eb7400c96dc9c9479c0e338170aa4e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 03 Aug 2012 21:15:17 -0400 Subject: Update example files. --- 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 -- cgit v0.9.1