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

pkgdatadir = platconf-pkg-tools.data/usr/share/platconf-pkg-tools
bindir = platconf-pkg-tools.data/usr/bin

nop build:
	@:

install:
	install -D -m 0644 src/build.mk $(pkgdatadir)/build.mk
	install -D -m 0755 src/ppt-mkpkgs $(bindir)/ppt-mkpkgs
	install -D -m 0755 src/ppt-rmpkgs $(bindir)/ppt-rmpkgs
	(set -e; cd src/; for f in */*; do \
		install -D -m 0644 $${f} ../$(pkgdatadir)/$${f}; \
	done)
	sed 's/@PPT_VERSION@/$(OPK_SOURCE_VERSION)/' src/ppt-make \
		>$(bindir)/ppt-make
	chmod 0755 $(bindir)/ppt-make