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
63 lines (51 loc) · 2.53 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
# 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++ examples++-tutorial \
examples++-eigen examples++-load examples++-mpi examples++-bug
EXTRA_DIST=regtests.pl arpack/arpack++/include/*.h src/*/*.h \
FreeFem++.*mcp.sit ffpc*mcp.zip COPYRIGHT HISTORY README BUGS TODO \
FreeFem++.app/Contents/Info.plist \
FreeFem++.app/Contents/MacOS/FreeFem++ 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
clean-local::
-find . \( -name '*~' -or -name ListOfUnAllocPtr.bin \) |xargs rm
-rm examples*/*.eps
# Build all versions
# ------------------
native:FreeFem++v$(VERSION)_MacOS 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:
-mkdir $@ $@/examples++ $@/examples++-tutorial $@/examples++-bug $@/examples++-eigen
/Developer/Tools/CpMac 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:
-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/FreeFem++.app
cp script/FreeFem++-CoCoa $@
FreeFem++v$(VERSION)_MacOsX.tgz: FreeFem++v$(VERSION)_MacOsX
tar zcvf FreeFem++v$(VERSION)_MacOsX.tgz FreeFem++v$(VERSION)_MacOsX