Files
opkg-utils/Makefile
Paul Barker fd4a3a4c20 update-alternatives: Script copied from opkg
The update-alternatives script is being moved from opkg to opkg-utils to break
possible circular dependencies in openembedded. As opkg will depend on
libarchive soon, and may depend on other packages if certain options are
enabled, opkg cannot itself provide update-alternatives if its dependencies
require update-alternatives.

opkg-utils has minimal build-time dependencies and so is a good place to put the
update-alternatives script.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-01-14 20:13:58 +00:00

20 lines
590 B
Makefile

UTILS = opkg-build opkg-unbuild opkg-compare-versions opkg-make-index opkg.py \
opkg-list-fields arfile.py opkg-buildpackage opkg-diff opkg-extract-file opkg-show-deps \
opkg-compare-indexes opkg-compare-versions.sh update-alternatives
DESTDIR=
PREFIX=/usr/local
bindir=$(PREFIX)/bin
all: opkg-compare-versions
opkg-compare-versions: opkg-compare-versions.c
$(CC) $(CFLAGS) -o opkg-compare-versions opkg-compare-versions.c
install: opkg-compare-versions
install -d $(DESTDIR)$(bindir)
install -m 755 $(UTILS) $(DESTDIR)$(bindir)
clean:
rm -rf opkg-compare-versions