File: Makefile.am

package info (click to toggle)
rheolef 7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 82,864 kB
  • sloc: cpp: 157,354; sh: 17,077; makefile: 7,046; python: 1,757; ansic: 690; yacc: 532; awk: 89; tcl: 16; sed: 5
file content (141 lines) | stat: -rw-r--r-- 3,970 bytes parent folder | download | duplicates (2)
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
## 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  =		\
	bootstrap	\
	configure.ac	\
	Makefile.am 	\
	VERSION 	\
	INSTALL 	\
	ChangeLog 	

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

WCIGNORE = COPYING
LICENSEIGNORE = 	\
	AUTHORS 	\
	VERSION

SUBDIRS  = 							\
	config 							\
	util 							\
	skit							\
	nfem							\
	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); /bin/rm -f $(PACKAGE).tar.gz; ln -s $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).tar.gz
	cd doc; $(MAKE) web-install


clean-local:
	/bin/rm -f include/rheolef.h include/rheolef_seq.h
	/bin/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:
	/bin/rm -f INSTALL config2.status config/config.mk

# autodocumentation: scan *.h and .cc in these directories 
# -> used by refman.pdf and doxygen .html docs
if USE_NEW_CODE
 SKIT_LIB  = skit/plib2
 FEM_LIB   = nfem/gbasis	\
	     nfem/plib		\
	     nfem/numbering	\
	     nfem/pbin
else
 SKIT_LIB  = skit/lib
 FEM_LIB   = nfem/lib		\
	     nfem/basis		\
	     nfem/bin 		\
	     nfem/form_element
endif

DOC_SUBDIRS =			\
	config 			\
	util/fdstream		\
	util/lib 		\
	util/ublas 		\
	util/bamg 		\
	$(SKIT_LIB) 		\
	nfem/sbin 		\
	nfem/quadrature		\
	nfem/geo_element	\
	$(FEM_LIB)		\
	doc/usrman

# used by doc/refman to scan subdirs:
doc_subdirs:
	@echo $(DOC_SUBDIRS)

check-local: check-license