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

include ../source.mk

sha_date_sed_re = ^.*[~+]git\(....\)\(..\)\(..\)\.\([0-9a-f]*\).*$$
sha_date_sed = s/$(sha_date_sed_re)/sha=-DSHA=\4 date=-DDATE=\1-\2-\3/
sha_date = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
	sed '$(sha_date_sed)')

nop:
	@:

build:
	oh-autobuild -- $(sha_date)
	touch $@

install: build
	oh-autoinstall
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps