This repository has been archived by the owner on May 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
121 lines (95 loc) · 3.93 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
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
# Makefile for FreeFem++, adapted to Automake
# -------------------------------------------
# Adaptation to Automake: Antoine Le Hyaric - LJLL Paris 6 -
# [email protected] - 13/5/04
# $Id$
SUBDIRS=download src DOC examples++-tutorial examples++ \
examples++-eigen examples++-load examples++-mpi \
examples++-bug examples++-other
EXTRA_DIST=regtests.sh config-wrapper.h arpack/arpack++/include/*.h \
FreeFem++.*mcp HISTORY README BUGS TODO \
FreeFem++.app/Contents/Info.plist FreeFem++.app/Contents/PkgInfo \
FreeFem++.app/Contents/Resources/Contents/Info.plist \
FreeFem++.app/Contents/Resources/Credits.rtf \
FreeFem++.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib \
FreeFem++.app/Contents/Resources/English.lproj/MainMenu.nib/info.nib \
FreeFem++.app/Contents/Resources/English.lproj/MainMenu.nib/NSAppleMenuImage.tiff \
FreeFem++.app/Contents/Resources/English.lproj/MainMenu.nib/objects.nib \
FreeFem++.app/Contents/Resources/script
# Creates a file named "ChangeLog" containing the chronology of all
# modifications to the source files. Needs "cvs2cl" to be installed.
changelog:
cvs2cl -w -S --fsf
documentation:
cd DOC && make documentation
clean-local::
-find . \( -name '*~' -or -name ListOfUnAllocPtr.bin \) |xargs rm
-rm examples*/*.eps
# Reduced compilation
# -------------------
quick:
cd src/lglib && make
cd src/fflib && make
cd src/std && make
quick-ide:
cd src/lglib && make
cd src/fflib && make
cd src/ide && make FreeFem++-cs FreeFem++-cs-server
# Testing
# -------
# The standard automake goal "make check" is also valid. It just does
# not run any test that could prevent the user from working on its
# machine (because of unexpected windows opening right in the middle
# of the workspace).
visualcheck: all
make check VISUALCHECK=yes
speedtest: all
cd examples++-other && make check
# Windows package
# ---------------
# Windows package script (for Inno Setup)
WindowsPackage.iss: WindowsPackage.m4 configure.ac
m4 -DVERSION=$(VERSION) WindowsPackage.m4 > WindowsPackage.iss
# Debian package
# --------------
deb:
dpkg-buildpackage -rfakeroot
@echo Now run '"cd debian && ./CopyToServer.sh \<dir>"'
# Build all versions
# ------------------
native:FreeFem++v$(VERSION)_MacOS FreeFem++v$(VERSION)_MacOsX.tgz
echo "done"
native9:FreeFem++v$(VERSION)_MacOS
echo "done"
nativeX: FreeFem++v$(VERSION)_MacOsX.tgz
echo "done"
clean-local::
-rm freefem++-$(VERSION).tar.gz
-rm -rf FreeFem++v*_MacOS
# Native MacOS packaging
# ----------------------
FreeFem++v$(VERSION)_MacOS:documentation
-mkdir $@ $@/examples++ $@/examples++-tutorial $@/examples++-bug $@/examples++-eigen
/Developer/Tools/CpMac "FreeFem++(Carbon)" $@/FreeFem++
cp COPYRIGHT HISTORY README BUGS TODO $@
cp examples++/*.edp $@/examples++
cp examples++-eigen/*.edp $@/examples++-eigen
cp examples++-tutorial/aile.msh examples++-tutorial/xyf examples++-tutorial/*.edp $@/examples++-tutorial
-cp examples++-bug/*.edp $@/examples++-bug
cp DOC/manual.ps.gz DOC/manual.pdf $@
FreeFem++v$(VERSION)_MacOsX: all documentation
-mkdir $@ $@/examples++ $@/examples++-tutorial $@/examples++-bug $@/examples++-eigen $@/examples++-load
cp COPYRIGHT HISTORY README BUGS TODO INSTALL-MacOSX $@
cp examples++/*.edp $@/examples++
cp examples++-tutorial/aile.msh examples++-tutorial/xyf examples++-tutorial/*.edp $@/examples++-tutorial
cp examples++-eigen/*.edp $@/examples++-eigen
-cp examples++-bug/*.edp $@/examples++-bug
cp DOC/manual.ps.gz DOC/manual.pdf $@
cp -r FreeFem++.app FreeFem++v$(VERSION)_MacOsX
sed <Info-plist.am >FreeFem++.app/Contents/Info.plist \
-e "s/@VVERSION@/$(VERSION)/g" \
-e "s/@DATE@/`date`/g"
cp src/agl/FreeFem++-agl FreeFem++v$(VERSION)_MacOsX/FreeFem++.app/Contents/Resources/FreeFem++
cp src/FreeFem++-CoCoa $@
FreeFem++v$(VERSION)_MacOsX.tgz: FreeFem++v$(VERSION)_MacOsX
tar zcvf FreeFem++v$(VERSION)_MacOsX.tgz FreeFem++v$(VERSION)_MacOsX