Summary Files Commits Branches @commit @diff @stats
path: root / std / builder / builder.ucx
blob: b5e00b0831a9d3c0967b0c616e05383c9817ff7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name := builder
#-- do
if [ -f "$(Xpath $SELF.src)" ]
then
	while read -r src
	do
		case "$src" in
			(*.git|git:*) git clone $src ;;
			(*) wget $src
		esac
	done <"$(Xpath $SELF.src)"
fi
if [ -f "$(Xpath $SELF.build)" ]
then
	/bin/sh $(Xpath $SELF.build)
else
	make
fi
if [ -f "$(Xpath $SELF.install)" ]
then
	/bin/sh $(Xpath $SELF.install)
else
	mkdir /out
	PREFIX=/out make install
fi