File size: 584 Bytes
a3dba46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
#
# Run make in each of the subdirectories
#

# Set environment variables to correspond to the current working directory
export NF_ROOT = $(CURDIR)
export PERL5LIB := $(CURDIR)/lib/Perl5:$(PERL5LIB)


# List of directories in which we should build
SUBDIRS = lib bitfiles projects


# Install the various files
subdirs: $(SUBDIRS)

$(SUBDIRS):
	echo $(PERL5LIB)
	if [ -f "$@/Makefile" ] ; then \
		$(MAKE) -C $@ ; \
	fi

clean install:
	for dir in $(SUBDIRS) ; do \
		if [ -f "$$dir/Makefile" ] ; then \
			$(MAKE) -C $$dir $@; \
		fi \
	done

.PHONY: install subdirs $(SUBDIRS) clean