blob: fcda0d52da5380a29e5a97f1dd60f214c2a371ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#! /usr/bin/make -f
VER = 1.0
PKGS = opkhelper opkhelper-doc
BIN_DATA = /usr/bin/oh-applypatches \
/usr/bin/oh-buildopk \
/usr/bin/oh-checkbuilddeps \
/usr/bin/oh-copyconfig \
/usr/bin/oh-gencontrol \
/usr/bin/oh-installdocs \
/usr/bin/oh-installfiles \
/usr/bin/oh-strip \
/usr/bin/opkbuild
MAN_DATA = /usr/share/man/man1/oh-applypatches.1 \
/usr/share/man/man1/oh-buildopk.1 \
/usr/share/man/man1/oh-checkbuilddeps.1 \
/usr/share/man/man1/oh-copyconfig.1 \
/usr/share/man/man1/oh-gencontrol.1 \
/usr/share/man/man1/oh-installdocs.1 \
/usr/share/man/man1/oh-installfiles.1 \
/usr/share/man/man1/oh-strip.1 \
/usr/share/man/man1/opkbuild.1 \
/usr/share/man/man7/opkhelper.7
$(PKGS): opkhelper.buildstamp
.SILENT: opkhelper.buildstamp
opkhelper.buildstamp:
for file in $(BIN_DATA); do \
mkdir -p "dest/$${file%/*}"; \
basename="$${file##*/}"; \
ln -s "$${basename}-$(VER)" "dest/$${file}"; \
done
for file in $(MAN_DATA); do \
mkdir -p "dest/$${file%/*}"; \
basename="$${file##*/}"; \
ln -s "$${basename%.*}-$(VER).$${basename##*.}" "dest/$${file}"; \
done
oh-installfiles $(PKGS)
oh-installdocs opkhelper
oh-gencontrol $(PKGS)
oh-buildopk $(PKGS)
touch $@
|