-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
111 lines (85 loc) · 3.45 KB
/
Makefile
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#################################################################################
# OCaml-R #
# #
# Copyright (C) 2008-2010 Institut National de Recherche en #
# Informatique et en Automatique. All rights reserved. #
# #
# Copyright (C) 2009-2010 Guillaume Yziquel. All rights reserved. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as #
# published by the Free Software Foundation; either version 3 of the #
# License, or any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Library General Public License for more details. #
# #
# You should have received a copy of the GNU General Public #
# License along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA #
# 02111-1307 USA #
# #
# Contact: [email protected] #
#################################################################################
# Compilation
#############
first: src
all:
cd src && $(MAKE) all
src: dummy
cd src && $(MAKE)
install: dummy
cd src && $(MAKE) install
re : depend clean all
# Documentation :
#################
doc: dummy
cd src && $(MAKE) doc
# myself
master.Makefile: master.Makefile.in config.status
./config.status
config.status: configure master.Makefile.in
./config.status --recheck
configure: configure.ac
autoconf
# headers :
###########
HEADFILES= configure.ac configure \
master.Makefile.in Makefile \
src/*.ml src/*.mli src/*.c src/math/*.ml src/math/*.mli src/math/*.c \
src/Makefile
headers: dummy
echo $(HEADFILES)
headache -h header -c .headache_config `ls $(HEADFILES)`
noheaders: dummy
headache -r -c .headache_config `ls $(HEADFILES)`
# backup, clean and depend :
############################
distclean: clean
$(RM) config.cache config.log config.status configure.lineno config.status.lineno
$(RM) master.Makefile
$(RM) config_check.log
$(RM) autom4te.cache
clean:: dummy
$(RM) *~ \#*\#
cd src && $(MAKE) clean
depend: dummy
cd src && $(MAKE) depend
dummy:
#################
# code count
#################
codecount:
@echo `cat src/*.ml src/*.mli | wc -l` lines
#################
# installation
#################
install: dummy
cd src && $(MAKE) install
###########################
# additional dependencies
###########################
# DO NOT DELETE