summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-06-21 10:50:06 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-06-21 10:50:06 (EDT)
commite3cb13e367e82194802e4b89ea86dc6981012ce8 (patch)
tree813a36552e6314277c2d25083ed21b71cf9423c8
parentb69e37d6f5241d0c842cc6cbc95ef7a835067221 (diff)
Use PKGS macro in build makefile.
-rwxr-xr-xbuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/build b/build
index 3ab07bf..22c4114 100755
--- a/build
+++ b/build
@@ -1,14 +1,16 @@
#! /usr/bin/make -f
-opkhelper opkhelper-doc: opkhelper.buildstamp
+PKGS = opkhelper opkhelper-doc
+
+$(PKGS): opkhelper.buildstamp
.SILENT: opkhelper.buildstamp
opkhelper.buildstamp:
mkdir build && cd build && \
../src/configure --prefix=/usr && \
make && make DESTDIR=$$(pwd)/../dest install
- oh-installfiles opkhelper opkhelper-doc
+ oh-installfiles $(PKGS)
oh-installdocs opkhelper
- oh-gencontrol opkhelper opkhelper-doc
- oh-buildopk opkhelper opkhelper-doc
- touch opkhelper.buildstamp
+ oh-gencontrol $(PKGS)
+ oh-buildopk $(PKGS)
+ touch $@