~ubuntu-branches/ubuntu/quantal/astk/quantal

« back to all changes in this revision

Viewing changes to ASTK_SERV/unittest/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Trophime
  • Date: 2010-04-25 16:43:13 UTC
  • Revision ID: james.westby@ubuntu.com-20100425164313-0s0wtsmbiewbdz53
Tags: upstream-1.8.0
ImportĀ upstreamĀ versionĀ 1.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHORT = etude compil catapy jobs meshtool client
 
2
LONG = catalo astout param others
 
3
LAST = surcharge
 
4
 
 
5
ALL   = $(SHORT) $(LONG) $(LAST)
 
6
 
 
7
default: diag
 
8
 
 
9
short: $(SHORT)
 
10
long: $(LONG)
 
11
last: $(LAST)
 
12
 
 
13
rest: $(SHORT) $(LAST)
 
14
all: $(ALL)
 
15
 
 
16
.PHONY: diag clean distclean short $(SHORT) long $(LONG) last $(LAST)
 
17
 
 
18
diag:
 
19
        @echo "--------------------------------"
 
20
        @echo "           RESULTS"
 
21
        @echo "--------------------------------"
 
22
        @for d in $(ALL); do \
 
23
                (cd $$d && if [ -f unittest ]; then echo "RESULT `cat unittest` for $$d"; fi); \
 
24
        done
 
25
 
 
26
clean: Makefile.inc
 
27
        @for d in $(ALL); do \
 
28
                (cd $$d && $(MAKE) $@); \
 
29
        done
 
30
 
 
31
distclean: clean
 
32
        @rm -f Makefile.inc
 
33
 
 
34
Makefile.inc: config.py
 
35
ifeq ($(PYTHONEXECUTABLE),)
 
36
        @python config.py
 
37
else
 
38
        @$(PYTHONEXECUTABLE) config.py
 
39
endif
 
40
 
 
41
$(ALL): Makefile.inc
 
42
        @$(MAKE) -C $@
 
43
 
 
44
$(LAST): $(SHORT)
 
45
 
 
46