Fix
[texmacs.git] / src / Makefile.in
blob7297488ae885ecaccf32d9041fafce8756991033
2 ###############################################################################
3 # MODULE : main TeXmacs make file
4 # COPYRIGHT : (C) 1999-2008 Joris van der Hoeven
5 ###############################################################################
6 # This software falls under the GNU general public license version 3 or later.
7 # It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
8 # in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
9 ###############################################################################
11 prefix = @prefix@
12 exec_prefix = @exec_prefix@
13 includedir = @includedir@
14 libdir = @libdir@
15 bindir = @bindir@
16 datarootdir = @datarootdir@
17 datadir = @datadir@
18 mandir = @mandir@
19 tmdir = @tmdir@
20 tmtgz = @tmtgz@
21 tmbin = @tmbin@
22 tmdata = @tmdata@
23 so = @CONFIG_SO@
25 DESTDIR =
27 MKDIR = mkdir -p
28 RM = rm -f
29 CP = cp -r -f
30 MV = mv -f
31 LN = ln -f
32 CHMOD = @CONFIG_CHMOD@
33 GZIP = gzip -f
34 STRIP = @CONFIG_STRIP@
35 TOUCH = touch
37 ###############################################################################
38 # Main makes
39 ###############################################################################
41 TEXMACS: EMPTY_DIRS
42 cd src; $(MAKE) -f makefile link=shared
43 $(MAKE) -f Makefile PLUGINS
44 $(MAKE) -f Makefile EX_PLUGINS
45 $(CP) misc/scripts/fig2ps $(tmdir)/bin
46 $(CP) misc/scripts/texmacs $(tmdir)/bin
47 $(CP) misc/scripts/tm_gs $(tmdir)/bin
48 $(CHMOD) 755 $(tmdir)/bin/*
49 $(CHMOD) 755 plugins/*/bin/*
50 $(RM) $(tmdir)/plugins
51 $(LN) -s ../plugins $(tmdir)/plugins
52 @echo ----------------------------------------------------
53 @echo dynamic TeXmacs has been successfully compiled
55 STATIC_TEXMACS: EMPTY_DIRS
56 cd src; $(MAKE) -f makefile link=static
57 $(MAKE) -f Makefile PLUGINS
58 $(MAKE) -f Makefile EX_PLUGINS
59 $(CP) misc/scripts/fig2ps $(tmdir)/bin
60 $(CP) misc/scripts/texmacs $(tmdir)/bin
61 $(CP) misc/scripts/tm_gs $(tmdir)/bin
62 $(CHMOD) 755 $(tmdir)/bin/*
63 $(CHMOD) 755 plugins/*/bin/*
64 $(RM) $(tmdir)/plugins
65 $(LN) -s ../plugins $(tmdir)/plugins
66 @echo ----------------------------------------------------
67 @echo static TeXmacs has been successfully compiled
69 DEPS: EMPTY_DIRS
70 cd src; $(MAKE) -f makefile deps
72 EMPTY_DIRS:
73 $(MKDIR) src/Deps
74 $(MKDIR) src/Objects
75 $(MKDIR) TeXmacs/bin
76 $(MKDIR) TeXmacs/lib
78 .PHONY: TEXMACS STATIC_TEXMACS DEPS EXPERIMENTAL
80 deps: DEPS
81 install: INSTALL
82 uninstall: UNINSTALL
83 clean: CLEAN
84 distclean: DISTCLEAN
86 .PHONY: deps install uninstall clean distclean
88 ###############################################################################
89 # Plugins
90 ###############################################################################
92 PLUGINS_ALL := $(wildcard plugins/*)
93 PLUGINS_MAKEFILE := $(wildcard plugins/*/Makefile)
94 PLUGINS_COMPILE := $(patsubst %Makefile,%COMPILE,$(PLUGINS_MAKEFILE))
95 PLUGINS_CLEAN := $(patsubst %Makefile,%CLEAN,$(PLUGINS_MAKEFILE))
97 plugins/%/COMPILE:
98 $(MKDIR) plugins/$*/bin
99 cd plugins/$*; $(MAKE) -i -f Makefile CC="@CC@" CXX="@CXX@"
101 plugins/%/CLEAN:
102 cd plugins/$*; $(MAKE) -i -f Makefile clean
104 PLUGINS: $(PLUGINS_COMPILE)
106 CLEAN_PLUGINS: $(PLUGINS_CLEAN)
108 .PHONY: PLUGINS CLEAN_PLUGINS
110 EX_PLUGINS_PRG := $(wildcard TeXmacs/examples/plugins/*/progs)
111 EX_PLUGINS_BIN := $(patsubst %/progs,%/bin,$(EX_PLUGINS_PRG))
113 TeXmacs/examples/plugins/%/bin:
114 $(MKDIR) TeXmacs/examples/plugins/$*/bin
116 EX_PLUGINS: $(EX_PLUGINS_BIN)
117 $(MKDIR) TeXmacs/examples/plugins/dynlink/lib
119 .PHONY: EX_PLUGINS
121 ###############################################################################
122 # Installing and removing TeXmacs (for system administrators)
123 ###############################################################################
125 INSTALL:
126 $(MKDIR) $(DESTDIR)$(tmbin)
127 $(MKDIR) $(DESTDIR)$(tmbin)/bin
128 $(MKDIR) $(DESTDIR)$(tmbin)/lib
129 $(CP) $(tmdir)/bin/texmacs.bin $(DESTDIR)$(tmbin)/bin
130 $(CP) $(tmdir)/bin/tm_gs $(DESTDIR)$(tmbin)/bin
131 $(CP) $(tmdir)/plugins/*/bin/* $(DESTDIR)$(tmbin)/bin
132 $(CP) $(tmdir)/plugins/*/lib/*.$(so) $(DESTDIR)$(tmbin)/lib 2>/dev/null || :
133 $(STRIP) $(DESTDIR)$(tmbin)/bin/texmacs.bin
134 $(CP) $(tmdir)/lib/*.$(so) $(DESTDIR)$(tmbin)/lib 2>/dev/null || :
135 $(STRIP) $(DESTDIR)$(tmbin)/lib/*.$(so) 2>/dev/null || :
136 $(CHMOD) 755 $(DESTDIR)$(tmbin)/bin/*
137 $(CHMOD) 755 $(DESTDIR)$(tmbin)/lib/*.$(so) 2>/dev/null || :
138 $(RM) $(DESTDIR)$(tmbin)/lib/*.a
139 @echo installed TeXmacs executables in $(DESTDIR)$(tmbin)
140 $(MKDIR) $(DESTDIR)$(tmdata)
141 $(CP) $(tmdir)/LICENSE $(DESTDIR)$(tmdata)
142 $(CP) $(tmdir)/doc $(DESTDIR)$(tmdata)
143 $(CP) $(tmdir)/examples $(DESTDIR)$(tmdata)
144 $(CP) $(tmdir)/fonts $(DESTDIR)$(tmdata)
145 $(CP) $(tmdir)/langs $(DESTDIR)$(tmdata)
146 $(CP) $(tmdir)/misc $(DESTDIR)$(tmdata)
147 $(CP) $(tmdir)/packages $(DESTDIR)$(tmdata)
148 $(CP) $(tmdir)/progs $(DESTDIR)$(tmdata)
149 $(CP) $(tmdir)/styles $(DESTDIR)$(tmdata)
150 $(CP) $(tmdir)/texts $(DESTDIR)$(tmdata)
151 $(CHMOD) -R go=rX $(DESTDIR)$(tmdata)
152 @echo installed TeXmacs data in $(DESTDIR)$(tmdata)
153 $(CP) plugins $(DESTDIR)$(tmdata)
154 $(RM) $(DESTDIR)$(tmdata)/plugins/*/Makefile
155 $(RM) -r $(DESTDIR)$(tmdata)/plugins/*/src
156 $(RM) -r $(DESTDIR)$(tmdata)/plugins/*/bin
157 $(RM) -r $(DESTDIR)$(tmdata)/plugins/*/lib
158 @echo installed TeXmacs plugins data in $(DESTDIR)$(tmdata)/plugins
159 $(MKDIR) $(DESTDIR)$(bindir)
160 $(CHMOD) 755 $(tmdir)/bin/*
161 $(CP) $(tmdir)/bin/fig2ps $(DESTDIR)$(bindir)
162 $(CP) $(tmdir)/bin/texmacs $(DESTDIR)$(bindir)
163 @echo installed TeXmacs startup scripts in $(DESTDIR)$(bindir)
164 $(MKDIR) $(DESTDIR)$(includedir)
165 $(CP) $(tmdir)/include/TeXmacs.h $(DESTDIR)$(includedir)
166 $(CHMOD) go=rX $(DESTDIR)$(includedir)/TeXmacs.h
167 @echo installed TeXmacs include files in $(DESTDIR)$(includedir)
168 $(MKDIR) $(DESTDIR)$(mandir)
169 $(MKDIR) $(DESTDIR)$(mandir)/man1
170 $(CP) misc/man/fig2ps.1 $(DESTDIR)$(mandir)/man1
171 $(CP) misc/man/texmacs.1 $(DESTDIR)$(mandir)/man1
172 $(GZIP) $(DESTDIR)$(mandir)/man1/fig2ps.1
173 $(GZIP) $(DESTDIR)$(mandir)/man1/texmacs.1
174 $(CHMOD) go=rX $(DESTDIR)$(mandir)/man1/fig2ps.1.gz
175 $(CHMOD) go=rX $(DESTDIR)$(mandir)/man1/texmacs.1.gz
176 @echo installed TeXmacs manual pages in $(DESTDIR)$(mandir)
177 @echo ----------------------------------------------------
178 @echo TeXmacs has been successfully installed
180 UNINSTALL:
181 $(RM) -r $(tmbin)
182 @echo removed TeXmacs executables from $(tmbin)
183 $(RM) -r $(tmdata)
184 @echo removed TeXmacs data from $(tmdata)
185 $(RM) $(includedir)/TeXmacs.h
186 @echo removed TeXmacs include files from $(includedir)
187 $(RM) $(bindir)/fig2ps
188 $(RM) $(bindir)/texmacs
189 @echo removed TeXmacs startup scripts from $(bindir)
190 $(RM) $(mandir)/man1/fig2ps.1.gz
191 $(RM) $(mandir)/man1/texmacs.1.gz
192 @echo removed TeXmacs manual pages from $(mandir)
193 @echo ----------------------------------------------------
194 @echo TeXmacs has been successfully removed
196 .PHONY: INSTALL UNINSTALL
198 ###############################################################################
199 # Make a bundle for Mac OS X
200 ###############################################################################
202 BUNDLE_SRC = misc/bundle
203 BUNDLE_APP = ../distr/TeXmacs.app
204 BUNDLE_DMG = ../distr/TeXmacs.dmg
205 BUNDLE_CONTENTS = $(BUNDLE_APP)/Contents
206 BUNDLE_RESOURCES = $(BUNDLE_CONTENTS)/Resources
207 BUNDLE_TEXMACS = $(BUNDLE_RESOURCES)/share/TeXmacs
208 BUNDLE_FONTS = TeXmacs-windows-fonts-1.0-noarch.tar.gz
210 BUNDLE_MAIN: TEXMACS
211 $(MKDIR) ../distr
212 $(RM) -r $(BUNDLE_APP)
213 $(MKDIR) $(BUNDLE_APP)
214 $(MKDIR) $(BUNDLE_CONTENTS)
215 $(CP) $(BUNDLE_SRC)/Info.plist $(BUNDLE_CONTENTS)
216 $(CP) $(BUNDLE_SRC)/PkgInfo $(BUNDLE_CONTENTS)
217 $(MKDIR) $(BUNDLE_CONTENTS)/MacOS
218 $(CP) TeXmacs/bin/texmacs.bin $(BUNDLE_CONTENTS)/MacOS/TeXmacs
219 $(MKDIR) $(BUNDLE_RESOURCES)
220 $(CP) $(BUNDLE_SRC)/TeXmacs.icns $(BUNDLE_RESOURCES)
221 $(CP) $(BUNDLE_SRC)/TeXmacs-document.icns $(BUNDLE_RESOURCES)
222 $(CP) src/Plugins/Cocoa/English.lproj $(BUNDLE_RESOURCES)
223 $(MKDIR) $(BUNDLE_RESOURCES)/bin
224 $(MKDIR) $(BUNDLE_RESOURCES)/lib
225 $(MKDIR) $(BUNDLE_RESOURCES)/share
226 $(CP) TeXmacs $(BUNDLE_RESOURCES)/share
227 $(RM) $(BUNDLE_TEXMACS)/bin/texmacs.bin
228 $(RM) -r $(BUNDLE_TEXMACS)/doc
229 if [ -f ../doc ] ; then \
230 $(CP) ../doc $(BUNDLE_TEXMACS) ;\
232 GUILE_DATA_PATH=`guile-config info pkgdatadir`; \
233 export GUILE_DATA_PATH; \
234 GUILE_LOAD_PATH=`find $$GUILE_DATA_PATH -type d | grep ice-9`; \
235 export GUILE_LOAD_PATH; \
236 $(CP) $$GUILE_LOAD_PATH $(BUNDLE_TEXMACS)/progs/
237 $(CHMOD) 644 $(BUNDLE_TEXMACS)/progs/ice-9/*
238 $(CHMOD) 755 $(BUNDLE_TEXMACS)/progs/ice-9
239 $(CHMOD) 755 $(BUNDLE_TEXMACS)/progs/ice-9/debugger 2>/dev/null || :
240 if [ -f ../distr/$(BUNDLE_FONTS) ] ; then \
241 $(CP) ../distr/$(BUNDLE_FONTS) $(BUNDLE_TEXMACS) ; \
242 cd $(BUNDLE_TEXMACS) ; \
243 tar -zxf $(BUNDLE_FONTS); \
244 $(RM) $(BUNDLE_FONTS) ; \
246 # $(CP) /opt/local/bin/gs $(BUNDLE_RESOURCES)/bin
247 # $(CP) /opt/local/bin/ps2pdf $(BUNDLE_RESOURCES)/bin
248 # cp -R -f /opt/local/share/ghostscript $(BUNDLE_RESOURCES)/share
249 $(RM) -r $(BUNDLE_TEXMACS)/CVS
250 $(RM) -r $(BUNDLE_TEXMACS)/*/CVS
251 $(RM) -r $(BUNDLE_TEXMACS)/*/*/CVS
252 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/CVS
253 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/CVS
254 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/*/CVS
255 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/*/*/CVS
256 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/*/*/*/CVS
257 $(RM) -r $(BUNDLE_TEXMACS)/.svn
258 $(RM) -r $(BUNDLE_TEXMACS)/*/.svn
259 $(RM) -r $(BUNDLE_TEXMACS)/*/*/.svn
260 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/.svn
261 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/.svn
262 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/*/.svn
263 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/*/*/.svn
264 $(RM) -r $(BUNDLE_TEXMACS)/*/*/*/*/*/*/*/.svn
266 define bundle_install_lib
267 $(CP) $(1) $(BUNDLE_RESOURCES)/lib
268 install_name_tool -change $(1) @executable_path/../Resources/lib/$(2) $(BUNDLE_CONTENTS)/MacOS/texmacs.bin
269 install_name_tool -id @executable_path/../Resources/lib/$(2) $(BUNDLE_RESOURCES)/lib/$(2)
270 endef
272 bundle_libraries = $(shell otool -L $(BUNDLE_CONTENTS)/MacOS/texmacs.bin | grep -o '/\(opt\|sw\|Users\)/.*/lib[^/]*dylib')
274 BUNDLE_LIBS:
275 $(foreach lib, $(bundle_libraries), $(call bundle_install_lib,$(lib),$(notdir $(lib))) ;)
277 #BUNDLE: BUNDLE_MAIN BUNDLE_LIBS
278 BUNDLE: BUNDLE_MAIN
279 $(BUNDLE_SRC)/bundle-libs.sh $(BUNDLE_CONTENTS)/MacOS/TeXmacs
282 DISKIMAGE: BUNDLE
283 $(RM) $(BUNDLE_DMG)
284 hdiutil create -srcfolder $(BUNDLE_APP) $(BUNDLE_DMG)
285 $(RM) -r $(BUNDLE_APP)
287 .PHONY: BUNDLE
289 ###############################################################################
290 # Make a bundle for Windows
291 ###############################################################################
293 WIN_BUNDLE_SRC = misc/windows
294 WIN_BUNDLE_DIR = ../distr/TeXmacs-Windows
295 WIN_BUNDLE_BIN_DIR = $(WIN_BUNDLE_DIR)/bin
296 WIN_BUNDLE_FONTS = TeXmacs-windows-fonts-1.0-noarch.tar.gz
298 ## WARNING: the following paths needs to be adapted manually
299 WIN_BUNDLE_QT_DLL_DIR = ../distr/dlls
300 WIN_BUNDLE_LIBS_DLL_DIR = ../distr/dlls
302 WIN_BUNDLE_MAIN: TEXMACS
303 $(MKDIR) ../distr
304 $(RM) -r $(WIN_BUNDLE_DIR)
305 $(MKDIR) $(WIN_BUNDLE_DIR)
306 $(CP) TeXmacs/* $(WIN_BUNDLE_DIR)/.
307 $(MV) $(WIN_BUNDLE_DIR)/bin/texmacs.bin $(WIN_BUNDLE_DIR)/bin/texmacs.exe
308 $(RM) -r $(WIN_BUNDLE_DIR)/bin/texmacs
309 $(RM) -r $(WIN_BUNDLE_DIR)/doc
310 $(CP) ../doc $(WIN_BUNDLE_DIR)
311 GUILE_DATA_PATH=`guile-config info pkgdatadir`; \
312 export GUILE_DATA_PATH; \
313 GUILE_LOAD_PATH=`find $$GUILE_DATA_PATH -type d | grep ice-9`; \
314 export GUILE_LOAD_PATH; \
315 for I in $$GUILE_LOAD_PATH ; do $(CP) $$I $(WIN_BUNDLE_DIR)/progs/ ; done
316 find $(WIN_BUNDLE_DIR)/progs/ice-9 -type f -exec $(CHMOD) 644 {} \;
317 if [ -f ../distr/$(BUNDLE_FONTS) ] ; then \
318 $(CP) ../distr/$(BUNDLE_FONTS) $(WIN_BUNDLE_DIR) ; \
319 cd $(WIN_BUNDLE_DIR) ; \
320 tar -zxf $(BUNDLE_FONTS); \
321 $(RM) $(BUNDLE_FONTS) ; \
323 # $(CP) /opt/local/bin/gs $(BUNDLE_RESOURCES)/bin
324 # $(CP) /opt/local/bin/ps2pdf $(BUNDLE_RESOURCES)/bin
325 # cp -R -f /opt/local/share/ghostscript $(BUNDLE_RESOURCES)/share
326 $(RM) -r $(WIN_BUNDLE_DIR)/.svn
327 $(RM) -r $(WIN_BUNDLE_DIR)/*/.svn
328 $(RM) -r $(WIN_BUNDLE_DIR)/*/*/.svn
329 $(RM) -r $(WIN_BUNDLE_DIR)/*/*/*/.svn
330 $(RM) -r $(WIN_BUNDLE_DIR)/*/*/*/*/.svn
331 $(RM) -r $(WIN_BUNDLE_DIR)/*/*/*/*/*/.svn
332 $(RM) -r $(WIN_BUNDLE_DIR)/*/*/*/*/*/*/.svn
333 $(RM) -r $(WIN_BUNDLE_DIR)/*/*/*/*/*/*/*/.svn
336 WIN_BUNDLE_LIBS:
337 $(CP) $(WIN_BUNDLE_QT_DLL_DIR)/QtCore4.dll $(WIN_BUNDLE_BIN_DIR)
338 $(CP) $(WIN_BUNDLE_QT_DLL_DIR)/QtGui4.dll $(WIN_BUNDLE_BIN_DIR)
339 $(CP) $(WIN_BUNDLE_QT_DLL_DIR)/QtSvg4.dll $(WIN_BUNDLE_BIN_DIR)
340 $(CP) $(WIN_BUNDLE_QT_DLL_DIR)/mingwm10.dll $(WIN_BUNDLE_BIN_DIR)
341 $(CP) $(WIN_BUNDLE_LIBS_DLL_DIR)/libgmp*.dll $(WIN_BUNDLE_BIN_DIR)
342 $(CP) $(WIN_BUNDLE_LIBS_DLL_DIR)/libguile*.dll $(WIN_BUNDLE_BIN_DIR)
343 $(CP) $(WIN_BUNDLE_LIBS_DLL_DIR)/libfreetype*.dll $(WIN_BUNDLE_BIN_DIR)
344 $(CP) $(WIN_BUNDLE_LIBS_DLL_DIR)/libltdl*.dll $(WIN_BUNDLE_BIN_DIR)
345 $(CP) $(WIN_BUNDLE_LIBS_DLL_DIR)/libiconv*.dll $(WIN_BUNDLE_BIN_DIR)
347 WIN_BUNDLE: WIN_BUNDLE_MAIN WIN_BUNDLE_LIBS
351 ###############################################################################
352 # Cleaning and backups
353 ###############################################################################
355 CLEAN_DOC:
356 $(RM) -r $(tmdir)/doc/examples
357 $(RM) -r $(tmdir)/doc/images
358 $(RM) -r $(tmdir)/doc/tutorial
359 $(RM) -r $(tmdir)/doc/web
360 $(RM) -r $(tmdir)/doc/plugins
361 $(RM) -r $(tmdir)/doc/CVS
362 $(RM) -r $(tmdir)/doc/*/CVS
363 $(RM) -r $(tmdir)/doc/*/*/CVS
364 $(RM) -r $(tmdir)/doc/*/*/*/CVS
365 $(RM) -r $(tmdir)/doc/*/*/*/*/CVS
366 $(RM) -r $(tmdir)/doc/.svn
367 $(RM) -r $(tmdir)/doc/*/.svn
368 $(RM) -r $(tmdir)/doc/*/*/.svn
369 $(RM) -r $(tmdir)/doc/*/*/*/.svn
370 $(RM) -r $(tmdir)/doc/*/*/*/*/.svn
372 RDISTR:
373 $(RM) $(tmdir)/TEX_PATHS
374 $(RM) *~
375 $(RM) */*~
376 $(RM) */*/*~
377 $(RM) */*/*/*~
378 $(RM) */*/*/*/*~
379 $(RM) */*/*/*/*/*~
380 $(RM) core
381 $(RM) */core
382 $(RM) src/*/core
383 $(RM) src/*/*/core
384 $(RM) src/*/*/*/core
385 $(RM) misc/*/core
386 $(RM) plugins/*/core
387 $(RM) plugins/*/*/core
388 $(RM) $(tmdir)/lib/*.a
389 $(RM) $(tmdir)/fonts/error/* 2>/dev/null || :
390 $(RM) -r autom*.cache
392 DISTR: RDISTR
393 cd src; $(MAKE) -f makefile DISTR
395 RCLEAN: RDISTR
396 $(RM) $(tmdir)/examples/plugins/bin/* 2>/dev/null || :
397 $(RM) $(tmdir)/plugins
398 $(RM) $(tmdir)/lib/* 2>/dev/null || :
399 $(RM) $(tmdir)/bin/* 2>/dev/null || :
400 $(RM) -r $(tmdir)/misc/images/.xvpics
401 $(RM) -r $(tmdir)/progs/ice-9
402 $(RM) -r X11
404 SCLEAN:
405 cd src; $(MAKE) -f makefile CLEAN
407 CLEAN: SCLEAN RCLEAN CLEAN_PLUGINS
409 DISTCLEAN: CLEAN
410 $(RM) src/Objects/* 2>/dev/null || :
411 $(RM) misc/doxygen/Doxyfile
412 $(RM) misc/man/texmacs.1
413 $(RM) misc/scripts/fig2ps
414 $(RM) misc/scripts/texmacs
415 $(RM) src/System/config.h
416 $(RM) src/System/tm_configure.hpp
417 $(RM) src/makefile
418 $(RM) TeXmacs/examples/plugins/dynlink/Makefile
419 $(RM) config.cache
420 $(RM) config.log
421 $(RM) config.status
422 $(RM) Makefile
424 .PHONY: RDISTR DISTR RCLEAN SCLEAN DISTCLEAN
426 ###############################################################################
427 # Miscellaneous targets
428 ###############################################################################
430 TOUCH:
431 $(TOUCH) */*.make
432 $(TOUCH) */*/*.hpp
433 $(TOUCH) */*/*/*.hpp
434 $(TOUCH) */*.cpp
435 $(TOUCH) */*/*.cpp
436 $(TOUCH) */*/*/*.cpp
437 $(TOUCH) */*/*/*/*.cpp
439 STRIP:
440 $(STRIP) $(tmdir)/bin/texmacs.bin
441 $(STRIP) $(tmdir)/lib/*.$(so) 2>/dev/null || >/dev/null
442 $(STRIP) $(tmdir)/plugins/*/bin/* 2>/dev/null || >/dev/null
444 ACCESS_FLAGS:
445 $(CHMOD) -R go+rX *
446 $(CHMOD) -R go+x $(tmdir)/bin
447 $(CHMOD) -R go+x $(tmdir)/lib
449 .PHONY: TOUCH STRIP ACCESS_FLAGS