25 lines
586 B
Makefile
25 lines
586 B
Makefile
|
#############################################################################
|
||
|
#
|
||
|
# Author: Achim Gaedke
|
||
|
# Created: June 2004
|
||
|
#
|
||
|
#############################################################################
|
||
|
|
||
|
|
||
|
.PHONY: clean install all
|
||
|
|
||
|
SUBDIRS=core drivers machines tests doc tools
|
||
|
PREFIX=$(shell cd && pwd)/nmr_software
|
||
|
|
||
|
all:
|
||
|
for d in $(SUBDIRS); do \
|
||
|
$(MAKE) PREFIX=$(PREFIX) -C $$d all || exit 1; \
|
||
|
done
|
||
|
|
||
|
clean:
|
||
|
rm -f *~ && for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
|
||
|
|
||
|
install:
|
||
|
install -d $(PREFIX); \
|
||
|
for d in $(SUBDIRS); do $(MAKE) PREFIX=$(PREFIX) -C $$d install; done
|