source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/GNUmakefile @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 1.4 KB
Line 
1# Makefile for packages
2# $Id: GNUmakefile 2959 2011-07-06 06:00:43Z mabl $
3# D. De Marco created Jan, 23 2002
4#
5
6ifndef ESAFINSTALL
7ESAFINSTALL = ../
8endif
9
10include $(ESAFINSTALL)/packages/config.gmk
11
12# tools is not included here because it isn't a normal package.
13# it contains miscellaneous utilities
14SUBDIRS = simulation common reconstruction
15
16
17.PHONY: inlcudes clean clean_all cleandict obj lib tags ID Simu Reco doc
18
19all: lib Simu Reco
20
21Simu: lib
22        cd simulation && $(MAKE)
23
24Reco: lib
25        cd reconstruction && $(MAKE)
26
27includes clean cleandict obj tags doc:
28        @for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@); done;
29
30lib:
31        @for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@); done;
32        @cd simulation/detector/tools && $(MAKE) rootlib
33
34map:
35        @cp $(ROOTSYS)/etc/system.rootmap $(ESAFMAP)
36        @for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@); done;
37        @cd reconstruction && $(MAKE)  $@
38
39
40clean_arch:
41        @echo Removing $(ARCH) installation
42        @echo "  Removing $(ESAFTMP)"
43        @rm -rf $(ESAFTMPALL)
44        @echo "  Removing $(BINDIR)"
45        @rm -rf $(BINDIR)
46        @echo "  Removing $(LIBDIR)"
47        @rm -rf $(LIBDIR)
48        @rm -f ID
49
50clean_all:
51        @echo Removing all installations
52        @echo "  Removing $(ESAFTMPALL)"
53        @rm -rf $(ESAFTMPALL)
54        @echo "  Removing $(ESAFINSTALL)/bin"
55        @rm -rf $(ESAFINSTALL)/bin
56        @echo "  Removing $(ESAFINSTALL)/lib"
57        @rm -rf $(ESAFINSTALL)/lib
58        @echo "  Removing $(ESAFINSTALL)/install"
59        @rm -rf $(ESAFINSTALL)/include
60        @rm -f ID
61
62ID:
63        @echo Creating ID database
64        @mkid
Note: See TracBrowser for help on using the repository browser.