summaryrefslogtreecommitdiffstats
path: root/openocd/Makefile
blob: 7c422cf4f8dbaeb09e3878b44a79aa6fe820bb83 (plain)
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
26
27
P=${PWD}/prefix/
S=$P/src/openocd

$P/bin/openocd:$S/installed.stamp

$S/installed.stamp: $S/built.stamp
	${MAKE} -C $S install

$S/built.stamp:$S/configured.stamp
	${MAKE} -C $S

$S/configured.stamp:$S/configure
	(cd $S && ./configure --prefix=$P)

$S/configure:$S/configure.ac
	(cd $S && ./bootstrap)

$S/configure.ac:
	/bin/rm -rf $S
	mkdir -p $P
	git clone --depth 1 ssh://git@git.panaceas.org/git/hp_instruments/openocd $S


clean:
	/bin/rm -rf $P

.PRECIOUS: