summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b04502829ee6c65d3406476b41a30b9aaadc25e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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