Dropping more non-ASCII characters from a comment in ifactor.lisp
[maxima.git] / Makefile.am
blobec9d4c8d0e5a945b988fee610aac3876eccb8d80
1 if ENABLE_GETTEXT
2    LOCALE_DIR = locale
3 endif
5 SUBDIRS = admin crosscompile-windows src lisp-utils tests doc interfaces share demo plotting $(LOCALE_DIR)
7 EXTRA_DIST = \
8   common.mk maxima.iss.in x-mac.xml\
9   README.lisps README.rpms README.i18n README.external \
10   INSTALL.win32 INSTALL.lisp \
11   configure.lisp  maxima-local.in xmaxima-local.in \
12   macosx/Makefile macosx/Readme.txt macosx/maxima.sh macosx/script \
13   macosx/xmaxima.sh macosx/appIcon.icns \
14   ChangeLog-5.9.2 ChangeLog-5.9.3 ChangeLog-5.10.0 ChangeLog-5.11.0 \
15   ChangeLog-5.12.0 ChangeLog-5.13.0 ChangeLog-5.14.0 ChangeLog-5.15.0 \
16   ChangeLog-5.16 ChangeLog-5.17 ChangeLog-5.17-special-functions \
17   ChangeLog-5.18 ChangeLog-5.19 ChangeLog-5.20 ChangeLog-5.21 ChangeLog-5.22 \
18   ChangeLog-5.23 ChangeLog-5.24 ChangeLog-5.25 ChangeLog-5.26 ChangeLog-5.27 \
19   ChangeLog-5.28 ChangeLog-5.29 ChangeLog-5.30 ChangeLog-5.31 ChangeLog-5.32 \
20   ChangeLog-5.33 ChangeLog-5.34 ChangeLog-5.35 ChangeLog-5.36.md
22 include common.mk
24 extradocinstall:
25         test -d "$(DESTDIR)$(docdir)" || mkdir -p "$(DESTDIR)$(docdir)"
26         for file in AUTHORS COPYING INSTALL README README.lisps ; \
27             do \
28             $(INSTALL_DATA) $$file "$(DESTDIR)$(docdir)" ; \
29             done
31 $(distdir).tar.gz: Makefile.am
32         $(MAKE) dist
34 # Build the Maxima rpms. Optionally, use
35 #     make rpm SUDO=sudo
36 # to use sudo to wrap the commands. The user must have sudo permissions
37 # for rpm and cp.
38 rpm: $(distdir).tar.gz
39         $(SUDO) cp $(distdir).tar.gz /usr/src/redhat/SOURCES && \
40         $(SUDO) rpmbuild -ba maxima.spec
42 # windows installer rules
43 if WIN32
45 GNUPLOTDIR = "/c/programs/gnuplot"
46 WXMAXIMADIR = "/c/programs/wxMaxima"
48 # Install the gnuplot binary files
49 gnuplot: 
50         mkdir -p $(prefix)/gnuplot
51         cp -rf $(GNUPLOTDIR) $(prefix)/
53 # Install wxMaxima
54 wxmaxima:
55         test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
56         cp -rf $(WXMAXIMADIR) $(prefix)/wxMaxima
58 cclcopy:
59         test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
60         cp "$(OPENMCL_NAME)" "$(prefix)/bin/"
62 sbclcopy:
63         test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
64         cp "$(SBCL_NAME)" "$(prefix)/bin/"
66 RUNTIMECOPY = 
67 # Install files for lisp runtime support
68 if GCL
69 RUNTIMECOPY += gcccopy
70 endif
72 if OPENMCL
73 RUNTIMECOPY += cclcopy
74 endif
76 if SBCL
77 RUNTIMECOPY += sbclcopy
78 endif
80 # Install files for lisp runtime support
81 win32-lisp-runtime: $(RUNTIMECOPY)
83 MINGW=/mingw
84 if GCC331
85 GCCPREFIX=/usr/local
86 # Old gcc/mingw/msys install
87 gcccopy:
88         test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
89         test -d "$(prefix)/include" || mkdir -p "$(prefix)/include"
90         test -d "$(prefix)/include/sys" || mkdir -p "$(prefix)/include/sys"
91         test -d "$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include" \
92                 || mkdir -p "$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include"
93         cp $(GCCPREFIX)/bin/gcc.exe $(prefix)/bin
94         cp $(MINGW)/bin/mingwm10.dll $(prefix)/bin
95         cp $(MINGW)/bin/tclpip84.dll $(prefix)/bin
96         cp $(MINGW)/include/stdio.h $(prefix)/include
97         cp $(MINGW)/include/stdlib.h $(prefix)/include
98         cp $(MINGW)/include/setjmp.h $(prefix)/include
99         cp $(MINGW)/include/_mingw.h $(prefix)/include
100         cp $(MINGW)/include/math.h $(prefix)/include
101         cp $(MINGW)/include/unistd.h $(prefix)/include
102         cp $(MINGW)/include/io.h $(prefix)/include
103         cp $(MINGW)/include/process.h $(prefix)/include
104         cp $(MINGW)/include/getopt.h $(prefix)/include
105         cp $(MINGW)/include/stdint.h $(prefix)/include
106         cp $(MINGW)/include/sys/*.h $(prefix)/include/sys
107         cp $(MINGW)/include/varargs.h $(prefix)/include
108         cp $(MINGW)/include/stddef.h $(prefix)/include
109         cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/cc1.exe \
110                 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
111         cp $(MINGW)/bin/as.exe \
112                 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
113         cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/specs  \
114                 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
115         cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/include/*.h  \
116                 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include
118 else # GCC331
120 GCCPREFIX=$(MINGW)
121 # New (November 2013) gcc/mingw/msys install using gcc-4.8.1
122 gcccopy:
123         test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
124         test -d "$(prefix)/include" || mkdir -p "$(prefix)/include"
125         test -d "$(prefix)/include/sys" || mkdir -p "$(prefix)/include/sys"
126         test -d "$(prefix)/lib/gcc/mingw32/$(GCCVER)/include" \
127                 || mkdir -p "$(prefix)/lib/gcc/mingw32/$(GCCVER)/include"
128         test -d "$(prefix)/libexec/gcc/mingw32/$(GCCVER)" \
129                 || mkdir -p "$(prefix)/libexec/gcc/mingw32/$(GCCVER)"
130         cp $(GCCPREFIX)/bin/gcc.exe $(prefix)/bin
131         cp $(MINGW)/bin/mingwm10.dll $(prefix)/bin
132         cp $(GCCPREFIX)/bin/libgmp-10.dll $(prefix)/bin
133         cp $(GCCPREFIX)/bin/libmpc-3.dll $(prefix)/bin
134         cp $(GCCPREFIX)/bin/libmpfr-4.dll $(prefix)/bin
135         cp /c/tcl/bin/tclpip85.dll $(prefix)/bin
136         cp $(MINGW)/include/stdio.h $(prefix)/include
137         cp $(MINGW)/include/stdlib.h $(prefix)/include
138         cp $(MINGW)/include/setjmp.h $(prefix)/include
139         cp $(MINGW)/include/_mingw.h $(prefix)/include
140         cp $(MINGW)/include/math.h $(prefix)/include
141         cp $(MINGW)/include/unistd.h $(prefix)/include
142         cp $(MINGW)/include/io.h $(prefix)/include
143         cp $(MINGW)/include/process.h $(prefix)/include
144         cp $(MINGW)/include/getopt.h $(prefix)/include
145         cp $(MINGW)/include/stdint.h $(prefix)/include
146         cp $(MINGW)/include/sys/*.h $(prefix)/include/sys
147         cp $(GCCPREFIX)/libexec/gcc/mingw32/$(GCCVER)/cc1.exe \
148                 $(prefix)/libexec/gcc/mingw32/$(GCCVER)
149         cp $(GCCPREFIX)/libexec/gcc/mingw32/$(GCCVER)/liblto_plugin-0.dll \
150                 $(prefix)/libexec/gcc/mingw32/$(GCCVER)
151         cp $(MINGW)/bin/as.exe \
152                 $(prefix)/libexec/gcc
153         cp $(GCCPREFIX)/lib/gcc/mingw32/$(GCCVER)/include/*.h  \
154                 $(prefix)/lib/gcc/mingw32/$(GCCVER)/include
156 endif # GCC331
158 iss: win32-lisp-runtime wxmaxima gnuplot extradocinstall
160 endif # WIN32
162 mimedatadir = $(datarootdir)/mime/packages
163 dist_mimedata_DATA = x-mac.xml