-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
75 lines (61 loc) · 2.01 KB
/
Makefile.am
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- makefile-automake -*-
#
# Top level makefile
#
# $Id$
#
# Blame: Jordan Hrycaj <[email protected]>
# recommended by libtoolize
ACLOCAL_AMFLAGS = -I m4lib
SUBDIRS = boot src
CLEANFILES =
# ---------------------------------------------------------------------------
# Auto-for-build configuration
# ---------------------------------------------------------------------------
help:
@echo
@echo "$(MAKE) [target]"
@echo
@echo "target: all [dist]clean -- standard targets dist/clean"
@echo " | prepare -- prepare target, imports etc."
@echo " | update -- force library import update"
@echo " | docs -- generate docs"
@echo " | try -- run quick source file tests"
@echo " | check -- run all tests"
@echo
# ---------------------------------------------------------------------------
# Targets ...
# ---------------------------------------------------------------------------
all-local::
.PHONY: prepare update try
prepare update::
$(MAKE) -C boot $@
# ---------------------------------------------------------------------------
# Collect documentation
# ---------------------------------------------------------------------------
.PHONY: docs
docs::
@$(MAKE) -C boot prepare
@$(MAKE) -C src $@
@mkdir -p doc
@find . -name \*.nim -print|while read f; do \
b=`expr "$$f" : '\(.*\)\.nim$$'` ; \
test -f "$$b.html" && (set -x; cp "$$b.html" doc/) ; \
done
clean-local::
rm -f doc/*.html
rmdir doc 2>/dev/null; :
# ---------------------------------------------------------------------------
# Auto configuration helper
# ---------------------------------------------------------------------------
.PHONY: libtool
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
.PHONY: autoreconf reconf
autoreconf reconf: libtool
rm -f $(AUTOGENERATED)
touch configure.ac
autoreconf
# ---------------------------------------------------------------------------
# End
# ---------------------------------------------------------------------------