-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
58 lines (42 loc) · 1.45 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Top-Level Makefile for Coldstore
#
TOP_SRCDIR = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
infodir = @infodir@
libdir = @libdir@
mandir = @mandir@
includedir = @includedir@
INSTALL = @INSTALL@
# directories
libdirs := metaclass/ qvmm/ intern/ coldstore/
execdirs := chaos/
extradirs := include/ libs/
docdirs := $(libdirs) $(execdirs)
alldirs := $(extradirs) $(libdirs) $(execdirs)
tardirs := $(alldirs)
docfiles := $(foreach dir,$(docdirs),coldstore/$(dir)kdoc) $(foreach dir,$(docdirs),coldstore/$(dir)*.html) $(foreach dir,$(docdirs),coldstore/$(dir)*.jpg) $(foreach dir,$(docdirs),coldstore/$(dir)*.fig) $(foreach dir,$(docdirs),coldstore/$(dir)*.sgml)
# rules
.PHONY: $(alldirs) clean distclean tar doctar dist
all: $(alldirs)
clean:
-($(foreach dir,$(alldirs),$(MAKE) -C $(dir) clean;))
distclean:
-($(foreach dir,$(alldirs),$(MAKE) -C $(dir) distclean;))
kdocs:
-($(foreach dir,$(docdirs),$(MAKE) -C $(dir) kdocs;))
tar: distclean
( here=`pwd`; here=`basename $$here`; cd ..; tar czvf $(branchname)-`date +%Y%m%d`.tgz $$here )
install:
@for dir in ${alldirs}; do \
(cd $$dir && $(MAKE) install) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
doctar: kdocs
(here=`pwd`; here=`basename $$here`; cd ..; tar czvf $(branchname)-docs-`date +Y%m%d`.tgz $$here/*.html $$here/graphics $(docfiles))
dist: tar doctar
$(alldirs):
$(MAKE) -C $(@D) $(@F) all