summaryrefslogtreecommitdiffstats
path: root/build
blob: 04ca6e5cbc42c5ad121ed7b9b54bf281e6b46095 (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
	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