Mercurial > MadButterfly
view 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 |
line wrap: on
line source
SUBDIRS= src tools all: .for i in $(SUBDIRS) @echo "==> Enter subdirectory $(i)" @cd ${i}; $(MAKE) $@ @echo "<== Leave subdirectory $(i)" .endfor install: .for i in $(SUBDIRS) @echo "==> Enter subdirectory $(i)" @cd ${i}; $(MAKE) $@ @echo "<== Leave subdirectory $(i)" .endfor clean: .for i in $(SUBDIRS) @echo "==> Enter subdirectory $(i)" @cd ${i}; $(MAKE) $@ @echo "<== Leave subdirectory $(i)" .endfor