Mercurial > MadButterfly
annotate Makefile.pmake @ 175:67e13d694230
Fix bug of src/Makefile.am & examples accept PREFIX variable.
- src/Makefile.am install header files into $(prefix)/include/mb instead of
$(prefix)/include original.
- examples find headers, M4 macro files, and tools with PREFIX varaible.
- default value of PREFIX is /usr/local.
- user can change PREFIX with paramter of make command, for example
'make PREFIX=../../build/dest', if MadButterfly was installed there.
- Users can install MadButterfly in their specified directory, for example,
'./configure --prefix=${PWD}/dest', the binary will installed in dest/.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 31 Oct 2008 15:15:44 +0800 |
parents | 042580eb6e6c |
children |
rev | line source |
---|---|
134 | 1 SUBDIRS= src tools |
2 | |
3 all: | |
4 .for i in $(SUBDIRS) | |
5 @echo "==> Enter subdirectory $(i)" | |
136
9af23d9584d8
Using $(MAKE) instead of make
Thinker K.F. Li <thinker@branda.to>
parents:
134
diff
changeset
|
6 @cd ${i}; $(MAKE) $@ |
134 | 7 @echo "<== Leave subdirectory $(i)" |
8 .endfor | |
9 | |
10 install: | |
11 .for i in $(SUBDIRS) | |
12 @echo "==> Enter subdirectory $(i)" | |
136
9af23d9584d8
Using $(MAKE) instead of make
Thinker K.F. Li <thinker@branda.to>
parents:
134
diff
changeset
|
13 @cd ${i}; $(MAKE) $@ |
134 | 14 @echo "<== Leave subdirectory $(i)" |
15 .endfor | |
16 | |
17 clean: | |
18 .for i in $(SUBDIRS) | |
19 @echo "==> Enter subdirectory $(i)" | |
136
9af23d9584d8
Using $(MAKE) instead of make
Thinker K.F. Li <thinker@branda.to>
parents:
134
diff
changeset
|
20 @cd ${i}; $(MAKE) $@ |
134 | 21 @echo "<== Leave subdirectory $(i)" |
22 .endfor |