File: Makefile.am

package info (click to toggle)
rheolef 7.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 88,076 kB
  • sloc: cpp: 110,259; sh: 16,733; makefile: 5,438; python: 1,391; yacc: 218; javascript: 203; xml: 191; awk: 61; sed: 5
file content (145 lines) | stat: -rw-r--r-- 4,149 bytes parent folder | download | duplicates (3)
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
## process this file with automake to produce Makefile.in
#
# This file is part of Rheolef.
#
# Copyright (C) 2000-2009 Pierre Saramito 
#
# Rheolef 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 2 of the License, or
# (at your option) any later version.
#
# Rheolef 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rheolef; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
include ${top_builddir}/config/config.mk

default: all
help::
	@echo "usage for rheolef make:"
	@echo "  make              : build executables"
	@echo "  make dvi          : build documentation"
	@echo "  make check        : validation by running non-regression tests"
	@echo "  make install      : installation of executables and documentation"
	@echo "  make clean        : delette temporaries during compilation"
	@echo "  make uninstall    : un-installation of executables and documentation"
	@echo "  make dist         : build a source rheolef-VERSION.tar.gz tar ball"
	@echo "  make deb          : build a binary rheolef-VERSION-ARCH.tar.gz tar ball with .deb"

love:
	@echo "...not war !"

# -----------------------------------------------------------------------------
# the file and directory sets
# -----------------------------------------------------------------------------

EXTRA_DIST  =		\
	.gitlab-ci.yml	\
	bootstrap	\
	configure.ac	\
	Makefile.am 	\
	VERSION 	\
	INSTALL 	\
	NEWS.md	 	\
	ChangeLog 	

CVSIGNORE = 		\
	configure	\
	INSTALL 	\
	Makefile 	\
	Makefile.in 	\
	aclocal.m4

WCIGNORE = 		\
	COPYING		\
	ChangeLog

LICENSEIGNORE = 	\
	README	 	\
	AUTHORS 	\
	NEWS.md		\
	VERSION		\
	.gitlab-ci.yml

SUBDIRS  = 							\
	ci_gitlab						\
	config 							\
	util 							\
	fem							\
	linalg							\
	main							\
	doc


# -----------------------------------------------------------------------------
# extra rules
# -----------------------------------------------------------------------------

AUTOMAKE_OPTIONS = 1.9
ACLOCAL_AMFLAGS = -I config

# compress mandirs (has been cleaned in config/Makefile.am at the begining of make install)
#install-data-hook:
#	gzip --best ${DESTDIR}${mandir}/man*/*.[0-9]rheolef || true

web-install: dist
	$(MKDIRHIER) $(WEB_DIR)
	$(INSTALL_DATA) $(PACKAGE)-$(VERSION).tar.gz $(WEB_DIR)/$(PACKAGE)-$(VERSION).tar.gz
	$(INSTALL_DATA) $(srcdir)/COPYING $(WEB_DIR)/COPYING
	cd $(WEB_DIR); rm -f $(PACKAGE).tar.gz; ln -s $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).tar.gz
	cd doc; $(MAKE) web-install


clean-local:
	rm -f include/rheolef.h include/rheolef_seq.h
	rm -f include/rheolef/*
	if test -d include/rheolef; then rmdir include/rheolef; fi
	if test -d include; then rmdir include; fi



# make distclean : when going in config/ : delete config.mk
# and when go in . : problem... may rebuild it
config/config.mk: config/config.mk.in
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

# after all make distclean : finaly delete it !
distclean-local:
	rm -f INSTALL.rst config2.status config/config.mk

# autodocumentation: scan *.h and .cc in these directories 
# -> used by refman.pdf and doxygen .html docs

check-local: check-license

$(srcdir)/INSTALL: $(srcdir)/configure.ac
	grep '^dnl #' $(srcdir)/configure.ac | sed -e 's/^dnl #//' > $@

html: dvi
	cd doc/web; $(MAKE) html

if HAVE_DEBIAN_PACKAGING
# debian "apt install" will run "mandb"	later
install-exec-hook:
	@true
else
if HAVE_TEX_DOCUMENTATION
# run now "mandb" for "man -k"
install-exec-hook:
	@if test x"$(MANDB)" != x""; then \
	  echo "cd ${DESTDIR}$(mandir) && MANPATH=. $(MANDB) -uq";	 \
	        cd ${DESTDIR}$(mandir) && MANPATH=. $(MANDB) -uq >/dev/null 2>/dev/null || true;	 \
	fi
else
# no unix manual
install-exec-hook:
	@true
endif 
endif