ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/Makefile
Revision: 173
Committed: Tue Apr 21 23:02:52 2009 UTC (16 years, 4 months ago) by francois
File size: 1192 byte(s)
Log Message:
Creation d'un script sous Ubuntu pour réaliseret distribuer une application magic 

File Contents

# Content
1 # Makefile for all
2
3
4
5 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
6
7
8 ldirs := $(subst :, ,$(dirs))
9
10 .PHONY: setup build test
11
12 all: setup build
13 SHELL := /bin/sh
14
15 setup:
16 @echo Setting up modules...
17 @for i in $(ldirs); do \
18 echo $$i; \
19 cd $$i; \
20 make setup NODEP=1; \
21 cd ../..; \
22 done
23
24 build:
25 @echo Building modules...
26 @for i in $(ldirs); do \
27 echo $$i; \
28 cd $$i; \
29 make -j 2; \
30 cd ../..; \
31 done
32
33 check:
34 @echo Building modules...
35 @for i in $(ldirs); do \
36 echo $$i; \
37 cd $$i; \
38 make NODEP=1 check; \
39 cd ../..; \
40 done
41
42 clean:
43 @echo Cleaning up modules...
44 @for i in $(ldirs); do \
45 echo $$i; \
46 cd $$i; \
47 make clean NODEP=1; \
48 cd ../..; \
49 done
50
51 distclean:
52 @echo Cleaning up modules...
53 @for i in $(ldirs); do \
54 echo $$i; \
55 cd $$i; \
56 make distclean NODEP=1; \
57 cd ../..; \
58 done
59
60 realclean:
61 @echo Cleaning up modules...
62 @for i in $(ldirs); do \
63 echo $$i; \
64 cd $$i; \
65 make realclean NODEP=1; \
66 cd ../..; \
67 done