mirror of
https://git.yoctoproject.org/git/opkg-utils
synced 2026-01-28 17:19:02 +01:00
The install receipe would have copied all the manpages to each of the section folders. This change will do what I believe the original author had intended. Signed-off-by: Joshua DeWeese <jdeweese@hennypenny.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
30 lines
686 B
Makefile
30 lines
686 B
Makefile
UTILS = opkg-build opkg-unbuild opkg-make-index opkg.py opkg-list-fields \
|
|
arfile.py opkg-buildpackage opkg-diff opkg-extract-file opkg-show-deps \
|
|
opkg-compare-indexes update-alternatives
|
|
|
|
MANPAGES = opkg-build.1
|
|
|
|
DESTDIR =
|
|
PREFIX ?= /usr/local
|
|
bindir ?= $(PREFIX)/bin
|
|
mandir ?= $(PREFIX)/man
|
|
|
|
.SUFFIXES: .1
|
|
|
|
%.1: %
|
|
pod2man -r "" -c "opkg-utils Documentation" $< $@
|
|
|
|
all: $(UTILS) $(MANPAGES)
|
|
|
|
install: all
|
|
install -d $(DESTDIR)$(bindir)
|
|
install -m 755 $(UTILS) $(DESTDIR)$(bindir)
|
|
install -d $(DESTDIR)$(mandir)
|
|
for m in $(MANPAGES); \
|
|
do \
|
|
install -d $(DESTDIR)$(mandir)/man$${m##*.}; \
|
|
install -m 644 "$$m" $(DESTDIR)$(mandir)/man$${m##*.}; \
|
|
done
|
|
|
|
.PHONY: install all
|