annotate tools/Makefile @ 145:609ed47a58f2

Decrease number of malloc().
author Thinker K.F. Li <thinker@branda.to>
date Thu, 25 Sep 2008 02:13:50 +0800
parents 4d2e28188460
children
rev   line source
134
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 BINS= svg2code.py
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 M4SCRIPTS= mb_c_header.m4 mb_c_source.m4 foreach.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 PREFIX?= /usr/local/
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 all:
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 install:
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 .for i in $(BINS)
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 $(INSTALL) -m 755 ${i} ${PREFIX}bin/
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 .endfor
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 $(INSTALL) -d ${PREFIX}share/mb
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 .for i in $(M4SCRIPTS)
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 $(INSTALL) ${i} ${PREFIX}share/mb/
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 .endfor
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 clean:
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17 for i in *~; do \
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 echo "delete $$i"; rm -f $$i; \
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
19 done