-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGNUmakefile
More file actions
42 lines (39 loc) · 1.59 KB
/
GNUmakefile
File metadata and controls
42 lines (39 loc) · 1.59 KB
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
32
33
34
35
36
37
38
39
40
41
42
#####################################################################################
#
# A top Makefile for building my project.
# One needs to define $LARLITE_USERDEVDIR environment variable and set it to where this
# makefile exists.
# One can type "make" and this builds packages that are added in $SUBDIR defined below.
#
# The original is taken from Glenn A. Smith's example for Double Chooz experiment.
#
#####################################################################################
#
# IMPOSE CONDITION BETWEEN LARLITE_USERDEVDIR & PWD =>
# do not compile if PWD !=$LARLITE_USERDEVDIR is set elsewhere
#
ifndef LAROPENCV_BASEDIR
ERROR_MESSAGE := $(error LAROPENCV_BASEDIR is not defined!)
endif
#
#####################################################################################
#
# Define directories to be compile upon a global "make"...
#
SUBDIRS := LArOpenCV #ADD_NEW_SUBDIR ... do not remove this comment from this line
#####################################################################################
#
# COMPILATION...
#
#.phony: all configure default-config clean
.phony: all clean
all:
@for i in $(SUBDIRS); do ( echo "" && echo "Compiling $$i..." && cd $(LAROPENCV_BASEDIR)/LArOpenCV && $(MAKE) ) || exit $$?; done
#####################################################################################
#
# CLEANs...
#
clean:
@for i in $(SUBDIRS); do ( echo "" && echo "Cleaning $$i..." && cd $(LAROPENCV_BASEDIR)/LArOpenCV && $(MAKE) clean && rm -f $(LARLITE_LIBDIR)/$$i.* ) || exit $$?; done
#####################################################################################
#EOF