root/openpgpsdk/trunk/Makefile

Revision 127 (checked in by ben, 8 years ago)

Better behaviour:
a) Say where make is happening
b) configure.h lives in include
c) Makefiles work standalone
d) configure can (must) be run from top directory

Line 
1 #
2 # $Id$
3 #
4
5 # order of build of subdirs is important
6 #
7 SUBDIRS=src examples
8
9 all: default include/configure.h
10
11 default:
12         @for d in $(SUBDIRS); do \
13         (cd $$d; echo "+++ make in $$d"; make; echo "--- $$d"); \
14         done
15
16 include/configure.h: include/configure.h.template configure
17         echo re-run configure
18
19 force_depend:
20         @for d in $(SUBDIRS); do \
21         (cd $$d; echo "+++ make force_depend in $$d"; make force_depend ; echo "--- $$d"); \
22         done
23
24 clean:
25         @for d in $(SUBDIRS); do \
26         (cd $$d; echo "+++ make clean in $$d"; make clean; echo "--- $$d"); \
27         done
28
Note: See TracBrowser for help on using the browser.