summaryrefslogtreecommitdiffstats
path: root/build
blob: 7353f303ed6c2cc407a9e4b321043b922873b50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

include ../source.mk

macros = \
	bindir=/usr/share/$(OPK_SOURCE) \
	pkgdatadir=/usr/share/$(OPK_SOURCE) \
	archtabdir=/usr/share/opkhelper/archtab-v1

nop:
	@:

build:
	oh-autoconfigure -- --with-ldconfig=/sbin/ldconfig
	oh-autobuild -- $(macros)
	touch $@

install: build
	oh-autoinstall -- $(macros)
	mv dest/usr/share/opkbuild/helpers/opkhelper \
		dest/usr/share/opkbuild/helpers/$(OPK_SOURCE)
	find dest/usr/share/$(OPK_SOURCE) -name '*.sm' -exec chmod a-x '{}' ';'
	oh-installfiles