blob: 0bbac7d2f4d43cdb8ef696cc1d4ef2eeb2384d9c (
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
|
#! /usr/bin/make -f
VER = 1.0
PKGS = opkhelper-$(VER) opkhelper-$(VER)-doc
$(PKGS): opkhelper.buildstamp
.SILENT: opkhelper.buildstamp
opkhelper.buildstamp:
mkdir build && cd build && \
../src/configure --prefix=/usr --libdir=/usr/share && \
make && make DESTDIR=$$(pwd)/../dest install
mv dest/usr/share/opkhelper dest/usr/share/opkhelper-$(VER)
for file in dest/usr/bin/*; do \
basename="$${file##*/}"; \
mv "$${file}" "$${file}-$(VER)"; \
done
for file in dest/usr/share/man/man*/*; do \
basename="$${file##*/}"; \
mv "$${file}" "$${file%.*}-$(VER).$${basename##*.}"; \
done
oh-installfiles $(PKGS)
oh-installdocs opkhelper-$(VER)
oh-gencontrol $(PKGS)
oh-buildopk $(PKGS)
touch $@
|