ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/Makefile
Revision: 186
Committed: Fri Jul 3 20:25:28 2009 UTC (16 years, 1 month ago) by picher
File size: 1291 byte(s)
Log Message:
Mise a jour de compatibilite avc FreeBSD et Optis

File Contents

# User Rev Content
1 5 # Makefile for all
2    
3 picher 186 ifeq ($(BONMAKE),gmake)
4     BONMAKE:=gmake
5     else
6     BONMAKE:=make
7     endif
8 5
9 francois 173 dirs := carte/carte:geometrie/geometrie:outil/outil:sat/sat:step/step:diamesh/diamesh:mailleur/mailleur:materiau/materiau:parseur/parseur:template/template:vectorisation/vectorisation:fichier/fichier
10 5
11    
12     ldirs := $(subst :, ,$(dirs))
13    
14     .PHONY: setup build test
15    
16     all: setup build
17     SHELL := /bin/sh
18    
19     setup:
20     @echo Setting up modules...
21     @for i in $(ldirs); do \
22     echo $$i; \
23     cd $$i; \
24 picher 186 $(BONMAKE) setup NODEP=1; \
25 5 cd ../..; \
26     done
27    
28     build:
29     @echo Building modules...
30     @for i in $(ldirs); do \
31     echo $$i; \
32     cd $$i; \
33 picher 186 $(BONMAKE) -j 2; \
34 5 cd ../..; \
35     done
36    
37     check:
38     @echo Building modules...
39     @for i in $(ldirs); do \
40     echo $$i; \
41     cd $$i; \
42 picher 186 $(BONMAKE) NODEP=1 check; \
43 5 cd ../..; \
44     done
45    
46     clean:
47     @echo Cleaning up modules...
48     @for i in $(ldirs); do \
49     echo $$i; \
50     cd $$i; \
51 picher 186 $(BONMAKE) clean NODEP=1; \
52 5 cd ../..; \
53     done
54    
55     distclean:
56     @echo Cleaning up modules...
57     @for i in $(ldirs); do \
58     echo $$i; \
59     cd $$i; \
60 picher 186 $(BONMAKE) distclean NODEP=1; \
61 5 cd ../..; \
62     done
63    
64     realclean:
65     @echo Cleaning up modules...
66     @for i in $(ldirs); do \
67     echo $$i; \
68     cd $$i; \
69 picher 186 $(BONMAKE) realclean NODEP=1; \
70 5 cd ../..; \
71     done