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

include ../source.mk

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

build:
	oh-autoconfigure
	oh-autobuild -- $(macros)

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