From cb4bdc4b0ce4a7b4a8092e0b154279b7394cb105 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 7 Jun 2010 12:42:15 +0800 Subject: [PATCH] =?UTF-8?q?[new=20package]=20Rub=C3=A9n=20Berenguel's=20po?= =?UTF-8?q?rts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xiangfu Liu --- 4th/Makefile | 55 + gnugo/Makefile | 48 + gnugo/patches/001_static_definition.patch | 451 ++++ pmars/Makefile | 41 + ...001-remove-static-define-in-makefile.patch | 35 + yacas/Makefile | 96 + yacas/patches/001_static_definition.patch | 1817 +++++++++++++++++ 7 files changed, 2543 insertions(+) create mode 100644 4th/Makefile create mode 100644 gnugo/Makefile create mode 100644 gnugo/patches/001_static_definition.patch create mode 100644 pmars/Makefile create mode 100644 pmars/patches/001-remove-static-define-in-makefile.patch create mode 100644 yacas/Makefile create mode 100644 yacas/patches/001_static_definition.patch diff --git a/4th/Makefile b/4th/Makefile new file mode 100644 index 0000000..9dc5e0a --- /dev/null +++ b/4th/Makefile @@ -0,0 +1,55 @@ +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk +##Nombre del paquete +PKG_NAME:=4th +## version del programa que vamos incluir en el paquete +PKG_VERSION:=3.60.1-unix +## numero de version del paquete +PKG_RELEASE:=3 +##Nombre del archivo con el codigo fuente usamos las variables que acabamos de definir http://www.xs4all.nl/~thebeez/4tH/4th-3.60.1-unix.tar.gz +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +##Url donde se encuetra el el codigo fuente +PKG_SOURCE_URL:=http://www.xs4all.nl/~thebeez/4tH/ +## programa con el que descomprimir el codigo fuente +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk +#Definicion del paquet Titulo, seccion, categoria, la url del proyecto, +#esto se usa para generar el ipkg y para incluirlo en el menuconfig +define Package/4th + TITLE:=4th + SECTION:=Programming + CATEGORY:=prog + DEPENDS:=@BROKEN + URL:=http://www.xs4all.nl/~thebeez/4tH/ +endef +#El directorio donde extraeremos los fuentes y realizaremos la compilacion +#BUILD_DIR es una variable de etorno de OpenWrt es donde descomprimen/compilan los paquetes +PKG_BUILD_DIR:=$(BUILD_DIR)/4th-$(PKG_VERSION) +#Descripcion larga del programa +define Package/4th/description +4th forth compiler +endef +#Si no hay que darles instrucciones especiales al ./configure esto se queda tal como esta. + +define Build/Prepare + #PKG_BUILD_DIR=$(PKG_BUILD_DIR)/src + $(call Build/Prepare/Default) + $(CP) $(PKG_BUILD_DIR)/sources/* $(PKG_BUILD_DIR)/ +endef + +define Build/Configure + $(call Build/Configure/Default) +endef +#Definimos donde se copiaran los binarios y las librerias cuando queramos instalarlo, +#emacs genera el binario en el directorio src +define Package/4th/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/4th $(1)/usr/sbin/ +endef +#Instrucion final para construir el paquete. +$(eval $(call BuildPackage,4th)) diff --git a/gnugo/Makefile b/gnugo/Makefile new file mode 100644 index 0000000..d1786ba --- /dev/null +++ b/gnugo/Makefile @@ -0,0 +1,48 @@ +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk +## Package name +PKG_NAME:=gnugo +## Package version we need (to match our download source) +PKG_VERSION:=3.8 +## Release version (don't really needed, just for completeness) +PKG_RELEASE:=3 +## Name of the file we will download, with the previous package name definitions +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +## Url with the PKG_SOURCE file +PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gnugo/ +## Program to uncompress the sources +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk +# Definition of the package, for adding to menuconfig and creating the ipkg. +define Package/gnugo + TITLE:=Go GNU from FSF + SECTION:=games + CATEGORY:=Games + DEPENDS:=@BROKEN + URL:=http://www.gnu.org/software/gnugo +endef +# Directory where the sources will be uncompiled and built BUILD_DIR +# is an env variable from the OpenWrt toolchain, you don't need to set +# it. +PKG_BUILD_DIR:=$(BUILD_DIR)/gnugo-$(PKG_VERSION) +# Long description of the package +define Package/gnugo/description + GNU Go is a free program that plays the game of Go. GNU Go has played thousands of games on the NNGS Go server. GNU Go is now also playing regularly on the Legend Go Server in Taiwan, on the WING server in Japan, and many volunteers run GNU Go clients on KGS. GNU Go has established itself as the leading non-commercial go program in the recent tournaments that it has taken part in. +endef +# If ./configure does not need any options, leave it as follows +define Package/gnugo/Build/Configure + $(call Build/Configure/Default) +endef +# Where will be copied the binaries and libraries after installation. +# Gnugo creates the binary executable in the interface directory. +define Package/gnugo/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/interface/gnugo $(1)/usr/sbin/ +endef +# Final step for bulding the package +$(eval $(call BuildPackage,gnugo)) diff --git a/gnugo/patches/001_static_definition.patch b/gnugo/patches/001_static_definition.patch new file mode 100644 index 0000000..710683d --- /dev/null +++ b/gnugo/patches/001_static_definition.patch @@ -0,0 +1,451 @@ +Only in gnugo-3.8: config.h +Only in gnugo-3.8: config.log +Only in gnugo-3.8: config.status +Only in gnugo-3.8/doc: Makefile +Only in gnugo-3.8/engine: aftermath.o +Only in gnugo-3.8/engine: boardlib.o +Only in gnugo-3.8/engine: board.o +Only in gnugo-3.8/engine: breakin.o +Only in gnugo-3.8/engine: cache.o +Only in gnugo-3.8/engine: clock.o +Only in gnugo-3.8/engine: combination.o +Only in gnugo-3.8/engine: .deps +Only in gnugo-3.8/engine: dragon.o +Only in gnugo-3.8/engine: endgame.o +Only in gnugo-3.8/engine: filllib.o +Only in gnugo-3.8/engine: fuseki.o +Only in gnugo-3.8/engine: genmove.o +Only in gnugo-3.8/engine: globals.o +Only in gnugo-3.8/engine: handicap.o +Only in gnugo-3.8/engine: hash.o +Only in gnugo-3.8/engine: influence.o +Only in gnugo-3.8/engine: interface.o +Only in gnugo-3.8/engine: libboard.a +Only in gnugo-3.8/engine: libengine.a +Only in gnugo-3.8/engine: Makefile +Only in gnugo-3.8/engine: matchpat.o +Only in gnugo-3.8/engine: montecarlo.o +Only in gnugo-3.8/engine: movelist.o +Only in gnugo-3.8/engine: move_reasons.o +Only in gnugo-3.8/engine: optics.o +Only in gnugo-3.8/engine: oracle.o +Only in gnugo-3.8/engine: owl.o +Only in gnugo-3.8/engine: persistent.o +Only in gnugo-3.8/engine: printutils.o +Only in gnugo-3.8/engine: readconnect.o +Only in gnugo-3.8/engine: reading.o +Only in gnugo-3.8/engine: semeai.o +Only in gnugo-3.8/engine: sgfdecide.o +Only in gnugo-3.8/engine: sgffile.o +Only in gnugo-3.8/engine: shapes.o +Only in gnugo-3.8/engine: showbord.o +Only in gnugo-3.8/engine: surround.o +Only in gnugo-3.8/engine: unconditional.o +Only in gnugo-3.8/engine: utils.o +Only in gnugo-3.8/engine: value_moves.o +Only in gnugo-3.8/engine: worm.o +Only in gnugo-3.8/interface: .deps +Only in gnugo-3.8/interface: gmp.o +Only in gnugo-3.8/interface: gnugo +Only in gnugo-3.8/interface: gtp.o +Only in gnugo-3.8/interface: main.o +Only in gnugo-3.8/interface: Makefile +Only in gnugo-3.8/interface: play_ascii.o +Only in gnugo-3.8/interface: play_gmp.o +Only in gnugo-3.8/interface: play_gtp.o +Only in gnugo-3.8/interface: play_solo.o +Only in gnugo-3.8/interface: play_test.o +Only in gnugo-3.8: Makefile +Only in gnugo-3.8/patterns: aa_attackpat.c +Only in gnugo-3.8/patterns: aa_attackpat.o +Only in gnugo-3.8/patterns: apatterns.c +Only in gnugo-3.8/patterns: apatterns.o +Only in gnugo-3.8/patterns: barriers.c +Only in gnugo-3.8/patterns: barriers.o +Only in gnugo-3.8/patterns: conn.c +Only in gnugo-3.8/patterns: connections.o +Only in gnugo-3.8/patterns: conn.o +Only in gnugo-3.8/patterns: .deps +Only in gnugo-3.8/patterns: dfa.o +Only in gnugo-3.8/patterns: dpatterns.c +Only in gnugo-3.8/patterns: dpatterns.o +Only in gnugo-3.8/patterns: endgame.c +Only in gnugo-3.8/patterns: endgame.o +Only in gnugo-3.8/patterns: eyes.c +Only in gnugo-3.8/patterns: eyes.o +Only in gnugo-3.8/patterns: fuseki13.c +Only in gnugo-3.8/patterns: fuseki13.o +Only in gnugo-3.8/patterns: fuseki19.c +Only in gnugo-3.8/patterns: fuseki19.o +Only in gnugo-3.8/patterns: fuseki9.c +Only in gnugo-3.8/patterns: fuseki9.o +Only in gnugo-3.8/patterns: fusekipat.c +Only in gnugo-3.8/patterns: fusekipat.o +Only in gnugo-3.8/patterns: globals.o +Only in gnugo-3.8/patterns: handipat.c +Only in gnugo-3.8/patterns: handipat.o +Only in gnugo-3.8/patterns: helpers.o +Only in gnugo-3.8/patterns: influence.c +Only in gnugo-3.8/patterns: influence.o +Only in gnugo-3.8/patterns: joseki +Only in gnugo-3.8/patterns: josekidb.c +Only in gnugo-3.8/patterns: josekidb.o +Only in gnugo-3.8/patterns: joseki.o +Only in gnugo-3.8/patterns: libpatterns.a +Only in gnugo-3.8/patterns: Makefile +diff -crB gnugo-3.8/patterns/Makefile.am gnugo-3.8mod/patterns/Makefile.am +*** gnugo-3.8/patterns/Makefile.am 2009-02-17 22:41:31.000000000 +0100 +--- gnugo-3.8mod/patterns/Makefile.am 2010-04-02 18:23:23.000000000 +0200 +*************** +*** 139,192 **** + ./joseki JT $(srcdir)/takamoku.sgf >takamoku.db + + patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT) +! ./mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \ + -o patterns.c + + josekidb.c : $(DBBUILT) mkpat$(EXEEXT) +! ./mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c + + apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT) +! ./mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c + + dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT) +! ./mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c + + conn.c : $(srcdir)/conn.db mkpat$(EXEEXT) +! ./mkpat -c conn -i $(srcdir)/conn.db -o conn.c + + endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT) +! ./mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c + + eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT) + ./mkeyes < $(srcdir)/eyes.db >eyes.c + + influence.c : $(srcdir)/influence.db mkpat$(EXEEXT) +! ./mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c + + barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT) +! ./mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c + + aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \ + -i $(srcdir)/aa_attackpats.db -o aa_attackpat.c + + owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \ + -i $(srcdir)/owl_attackpats.db -o owl_attackpat.c + + oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT) +! ./mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c + + owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \ + -i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c + + owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \ + -i $(srcdir)/owl_defendpats.db -o owl_defendpat.c + + fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT) +! ./mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c + + fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT) + ./uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c +--- 139,192 ---- + ./joseki JT $(srcdir)/takamoku.sgf >takamoku.db + + patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \ + -o patterns.c + + josekidb.c : $(DBBUILT) mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c + + apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c + + dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c + + conn.c : $(srcdir)/conn.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c conn -i $(srcdir)/conn.db -o conn.c + + endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c + + eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT) + ./mkeyes < $(srcdir)/eyes.db >eyes.c + + influence.c : $(srcdir)/influence.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c + + barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c + + aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \ + -i $(srcdir)/aa_attackpats.db -o aa_attackpat.c + + owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \ + -i $(srcdir)/owl_attackpats.db -o owl_attackpat.c + + oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c + + owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \ + -i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c + + owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \ + -i $(srcdir)/owl_defendpats.db -o owl_defendpat.c + + fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c + + fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT) + ./uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c +*************** +*** 198,204 **** + ./uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c + + handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT) +! ./mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c + + mcpat.c : $(MC_DB) mkmcpat$(EXEEXT) + ./mkmcpat $(MC_DB) > mcpat.c +--- 198,204 ---- + ./uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c + + handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c + + mcpat.c : $(MC_DB) mkmcpat$(EXEEXT) + ./mkmcpat $(MC_DB) > mcpat.c +diff -crB gnugo-3.8/patterns/Makefile.in gnugo-3.8mod/patterns/Makefile.in +*** gnugo-3.8/patterns/Makefile.in 2009-02-18 01:50:06.000000000 +0100 +--- gnugo-3.8mod/patterns/Makefile.in 2010-04-02 20:30:00.000000000 +0200 +*************** +*** 614,703 **** + cd $(distdir) && rm $(GGBUILTSOURCES) + + gogo.db : $(srcdir)/gogo.sgf joseki$(EXEEXT) +! ./joseki JG $(srcdir)/gogo.sgf >gogo.db + + hoshi_keima.db : $(srcdir)/hoshi_keima.sgf joseki$(EXEEXT) +! ./joseki JHK $(srcdir)/hoshi_keima.sgf >hoshi_keima.db + + hoshi_other.db : $(srcdir)/hoshi_other.sgf joseki$(EXEEXT) +! ./joseki JHO $(srcdir)/hoshi_other.sgf >hoshi_other.db + + komoku.db : $(srcdir)/komoku.sgf joseki$(EXEEXT) +! ./joseki JK $(srcdir)/komoku.sgf >komoku.db + + sansan.db : $(srcdir)/sansan.sgf joseki$(EXEEXT) +! ./joseki JS $(srcdir)/sansan.sgf >sansan.db + + mokuhazushi.db : $(srcdir)/mokuhazushi.sgf joseki$(EXEEXT) +! ./joseki JM $(srcdir)/mokuhazushi.sgf >mokuhazushi.db + + takamoku.db : $(srcdir)/takamoku.sgf joseki$(EXEEXT) +! ./joseki JT $(srcdir)/takamoku.sgf >takamoku.db + + patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT) +! ./mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \ + -o patterns.c + + josekidb.c : $(DBBUILT) mkpat$(EXEEXT) +! ./mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c + + apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT) +! ./mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c + + dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT) +! ./mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c + + conn.c : $(srcdir)/conn.db mkpat$(EXEEXT) +! ./mkpat -c conn -i $(srcdir)/conn.db -o conn.c + + endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT) +! ./mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c + + eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT) +! ./mkeyes < $(srcdir)/eyes.db >eyes.c + + influence.c : $(srcdir)/influence.db mkpat$(EXEEXT) +! ./mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c + + barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT) +! ./mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c + + aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \ + -i $(srcdir)/aa_attackpats.db -o aa_attackpat.c + + owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \ + -i $(srcdir)/owl_attackpats.db -o owl_attackpat.c + + oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT) +! ./mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c + + owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \ + -i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c + + owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT) +! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \ + -i $(srcdir)/owl_defendpats.db -o owl_defendpat.c + + fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT) +! ./mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c + + fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT) +! ./uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c + + fuseki13.c : $(srcdir)/fuseki13.dbz uncompress_fuseki$(EXEEXT) +! ./uncompress_fuseki 13 $(srcdir)/fuseki13.dbz c >fuseki13.c + + fuseki19.c : $(srcdir)/fuseki19.dbz uncompress_fuseki$(EXEEXT) +! ./uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c + + handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT) +! ./mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c + + mcpat.c : $(MC_DB) mkmcpat$(EXEEXT) +! ./mkmcpat $(MC_DB) > mcpat.c + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: +--- 614,703 ---- + cd $(distdir) && rm $(GGBUILTSOURCES) + + gogo.db : $(srcdir)/gogo.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JG $(srcdir)/gogo.sgf >gogo.db + + hoshi_keima.db : $(srcdir)/hoshi_keima.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JHK $(srcdir)/hoshi_keima.sgf >hoshi_keima.db + + hoshi_other.db : $(srcdir)/hoshi_other.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JHO $(srcdir)/hoshi_other.sgf >hoshi_other.db + + komoku.db : $(srcdir)/komoku.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JK $(srcdir)/komoku.sgf >komoku.db + + sansan.db : $(srcdir)/sansan.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JS $(srcdir)/sansan.sgf >sansan.db + + mokuhazushi.db : $(srcdir)/mokuhazushi.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JM $(srcdir)/mokuhazushi.sgf >mokuhazushi.db + + takamoku.db : $(srcdir)/takamoku.sgf joseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JT $(srcdir)/takamoku.sgf >takamoku.db + + patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \ + -o patterns.c + + josekidb.c : $(DBBUILT) mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c + + apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c + + dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c + + conn.c : $(srcdir)/conn.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c conn -i $(srcdir)/conn.db -o conn.c + + endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c + + eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkeyes < $(srcdir)/eyes.db >eyes.c + + influence.c : $(srcdir)/influence.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c + + barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c + + aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \ + -i $(srcdir)/aa_attackpats.db -o aa_attackpat.c + + owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \ + -i $(srcdir)/owl_attackpats.db -o owl_attackpat.c + + oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c + + owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \ + -i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c + + owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \ + -i $(srcdir)/owl_defendpats.db -o owl_defendpat.c + + fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c + + fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c + + fuseki13.c : $(srcdir)/fuseki13.dbz uncompress_fuseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/uncompress_fuseki 13 $(srcdir)/fuseki13.dbz c >fuseki13.c + + fuseki19.c : $(srcdir)/fuseki19.dbz uncompress_fuseki$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c + + handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c + + mcpat.c : $(MC_DB) mkmcpat$(EXEEXT) +! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkmcpat $(MC_DB) > mcpat.c + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: +Only in gnugo-3.8/patterns: mcpat.c +Only in gnugo-3.8/patterns: mcpat.o +Only in gnugo-3.8/patterns: mkeyes +Only in gnugo-3.8/patterns: mkeyes.o +Only in gnugo-3.8/patterns: mkmcpat +Only in gnugo-3.8/patterns: mkmcpat.o +Only in gnugo-3.8/patterns: mkpat +Only in gnugo-3.8/patterns: mkpat.o +Only in gnugo-3.8/patterns: oraclepat.c +Only in gnugo-3.8/patterns: oraclepat.o +Only in gnugo-3.8/patterns: owl_attackpat.c +Only in gnugo-3.8/patterns: owl_attackpat.o +Only in gnugo-3.8/patterns: owl_defendpat.c +Only in gnugo-3.8/patterns: owl_defendpat.o +Only in gnugo-3.8/patterns: owl_vital_apat.c +Only in gnugo-3.8/patterns: owl_vital_apat.o +Only in gnugo-3.8/patterns: patterns.c +Only in gnugo-3.8/patterns: patterns.o +Only in gnugo-3.8/patterns: transform.o +Only in gnugo-3.8/patterns: uncompress_fuseki +Only in gnugo-3.8/patterns: uncompress_fuseki.o +Only in gnugo-3.8/regression: Makefile +Only in gnugo-3.8/sgf: .deps +Only in gnugo-3.8/sgf: libsgf.a +Only in gnugo-3.8/sgf: Makefile +Only in gnugo-3.8/sgf: sgfgen +Only in gnugo-3.8/sgf: sgfgen.o +Only in gnugo-3.8/sgf: sgfnode.o +Only in gnugo-3.8/sgf: sgftree.o +Only in gnugo-3.8/sgf: sgf_utils.o +Only in gnugo-3.8: stamp-h1 +Only in gnugo-3.8/utils: .deps +Only in gnugo-3.8/utils: getopt1.o +Only in gnugo-3.8/utils: getopt.o +Only in gnugo-3.8/utils: gg_utils.o +Only in gnugo-3.8/utils: libutils.a +Only in gnugo-3.8/utils: Makefile +Only in gnugo-3.8/utils: random.o +Only in gnugo-3.8/utils: winsocket.o diff --git a/pmars/Makefile b/pmars/Makefile new file mode 100644 index 0000000..1ed0d0c --- /dev/null +++ b/pmars/Makefile @@ -0,0 +1,41 @@ +# Copyright (C) 2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk +PKG_NAME:=pmars +PKG_VERSION:=0.9.2 +PKG_RELEASE:=3 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/corewar/pMARS/0.9.2/pmars-0.9.2.tar.gz?use_mirror=mesh +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk +define Package/pmars + TITLE:=Pmars + SECTION:=games + CATEGORY:=Games + DEPENDS:=@BROKEN + URL:= +endef +PKG_BUILD_DIR:=$(BUILD_DIR)/pmars-$(PKG_VERSION) +define Package/pmars/description + PMARS +endef + +TARGET_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib + +MAKE_FLAGS += -C src + +define Package/pmars/Build/Compile + $(call Build/Compile/Default) +endef + +define Package/pmars/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmars $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,pmars)) diff --git a/pmars/patches/001-remove-static-define-in-makefile.patch b/pmars/patches/001-remove-static-define-in-makefile.patch new file mode 100644 index 0000000..455abc4 --- /dev/null +++ b/pmars/patches/001-remove-static-define-in-makefile.patch @@ -0,0 +1,35 @@ +diff --git a/src/Makefile b/src/Makefile +index 99c00bb..17a51ed 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -1,5 +1,5 @@ + # generic UNIX makefile +-CC = gcc # req. for linux ++#CC = gcc # req. for linux + #CC = cc # if you don't have gcc + # Configuration options: + # +@@ -16,11 +16,11 @@ CC = gcc # req. for linux + # (6) -DXWINGRAPHX 1 X-Windows graphics (UNIX) + # (7) -DPERMUTATE enables -P switch + +-CFLAGS = -O -DEXT94 -DXWINGRAPHX -DPERMUTATE ++CFLAGS := $(CFLAGS) -O -DEXT94 -DPERMUTATE -DCURSESGRAPHX + LFLAGS = -x +-# LIB = -lcurses -ltermlib # enable this one for curses display ++LIB = -lncurses -ltermlib # enable this one for curses display + # LIB = -lvgagl -lvga # enable this one for Linux/SVGA +-LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11 ++# LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11 + + .SUFFIXES: .o .c .c~ .man .doc .6 + MAINFILE = pmars +@@ -38,7 +38,7 @@ flags: + $(MAINFILE): $(OBJ1) $(OBJ2) $(OBJ3) + @echo Linking $(MAINFILE) + @$(CC) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB) +- @strip $(MAINFILE) ++ @$(STRIP) $(MAINFILE) + @echo done + + token.o asm.o disasm.o: asm.h diff --git a/yacas/Makefile b/yacas/Makefile new file mode 100644 index 0000000..5d3838d --- /dev/null +++ b/yacas/Makefile @@ -0,0 +1,96 @@ +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk +## Package name +PKG_NAME:=yacas +## Package version we need (to match our download source) +PKG_VERSION:=1.2.2 +## Release version (don't really needed, just for completeness) +PKG_RELEASE:=3 +## Name of the file we will download, with the previous package name definitions +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +## Url with the PKG_SOURCE file +PKG_SOURCE_URL:=http://yacas.sourceforge.net/backups/ +## Program to uncompress the sources +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk +# Definition of the package, for adding to menuconfig and creating the ipkg. +define Package/yacas + TITLE:=yacas + SECTION:=Maths + CATEGORY:=Maths + DEPENDS:=@BROKEN + URL:=http://yacas.sourceforge.net +endef + +# Directory where the sources will be uncompiled and built BUILD_DIR +# is an env variable from the OpenWrt toolchain, you don't need to set +# it. + +PKG_BUILD_DIR:=$(BUILD_DIR)/yacas-$(PKG_VERSION) + +# Long description of the package + +define Package/yacas/description + YACAS is an easy to use, general purpose Computer Algebra System, a program for symbolic manipulation of mathematical expressions. It uses its own programming language designed for symbolic as well as arbitrary-precision numerical computations. The system has a library of scripts that implement many of the symbolic algebra operations; new algorithms can be easily added to the library. YACAS comes with extensive documentation (hundreds of pages) covering the scripting language, the functionality that is already implemented in the system, and the algorithms we used. +endef + +define Build/Prepare +# The following is a dirty hack. To compile yacas you need to get +# mkfastprimes to run in your host computer. To do so, in Prepare I +# download the tar.gz in pkg_build_dir/temporaryyacas to configure and +# make it to get this mkfastprimes compiled. configure has a problem: +# it generates the Makefile in the current working directory... and cd +# doesn't seem to change it. Thus, it would overwrite the Makefile in +# ports/misc/yacas, a thing which we don't like. To solve it, copy +# Makefile to Makefile2, configure-make and copy it back. The only +# drawback of this approach is that ports/misc/yacas/ gets a little +# full of miscellaneous, unneeded files, generated by configure. Once +# we have mkfastprimes, we copy it to tmp, and then the applied patch +# uses that file. It looks like pwd, export and several other +# constructs don't work under openwrt's build-make environment, that +# is why I just use $(CP) which looks like works correctly. + wget $(PKG_SOURCE_URL)$(PKG_NAME)-$(PKG_VERSION).tar.gz + mkdir /tmp/temporaryyacas + mv $(PKG_NAME)-$(PKG_VERSION).tar.gz /tmp/temporaryyacas/ + cp Makefile Makefile2 + tar -C /tmp/temporaryyacas/ -xvf /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION).tar.gz + patch /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION)/configure.in patches1/manmake.pat + patch /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION)/Makefile.in patches1/manmake2.pat + /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION)/configure + make + $(CP) src/mkfastprimes /tmp/mkfastprimes + cp Makefile2 Makefile + rm /tmp/temporaryyacas/ -rf + $(call Build/Prepare/Default) +endef + +# Configure, in principle does not need any parameter + +define Package/yacas/Build/Configure + $(call Build/Configure/Default) +endef + +# To end, copy the yacas binary to sbin, and all yacas scripts to +# sin/yacas-scripts. When you have installed the ipkg you have to add +# sin/yacas-scripts/ to the path, if you don't yacas won't do +# anything. You can also cd to sbin/yacas-scripts and run yacas from +# there. I'll have to check if configure or make has a configuration +# parameter to set the scripts folder. + +define Package/yacas/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/yacas $(1)/usr/sbin/ + mkdir $(1)/usr/sbin/yacas-scripts/ + cp -r $(PKG_BUILD_DIR)/scripts/* $(1)/usr/sbin/yacas-scripts/ +endef + +# Final step for bulding the package + +$(eval $(call BuildPackage,yacas)) + + diff --git a/yacas/patches/001_static_definition.patch b/yacas/patches/001_static_definition.patch new file mode 100644 index 0000000..f8f62f6 --- /dev/null +++ b/yacas/patches/001_static_definition.patch @@ -0,0 +1,1817 @@ +diff -crB yacas-1.2.2old/configure.in yacas-1.2.2new/configure.in +*** yacas-1.2.2old/configure.in 2007-09-27 15:21:46.000000000 +0200 +--- yacas-1.2.2new/configure.in 2010-05-01 00:25:08.000000000 +0200 +*************** +*** 235,240 **** + scripts/Makefile + JavaYacas/Makefile + tests/Makefile +! manmake/Makefile + src/Makefile) + +--- 235,240 ---- + scripts/Makefile + JavaYacas/Makefile + tests/Makefile +! #manmake/Makefile + src/Makefile) + +diff -crB yacas-1.2.2old/Makefile.am yacas-1.2.2new/Makefile.am +*** yacas-1.2.2old/Makefile.am 2007-09-16 21:53:44.000000000 +0200 +--- yacas-1.2.2new/Makefile.am 2010-05-01 00:34:16.000000000 +0200 +*************** +*** 9,15 **** + ## suite in "tests". In addition, one of the tests to be run is generated in + ## "manmake". + +! SUBDIRS = . docs src scripts manmake tests JavaYacas + + ## A script to be installed in the directory for binaries + bin_SCRIPTS = +--- 9,15 ---- + ## suite in "tests". In addition, one of the tests to be run is generated in + ## "manmake". + +! SUBDIRS = . docs src scripts tests JavaYacas + + ## A script to be installed in the directory for binaries + bin_SCRIPTS = +*************** +*** 25,36 **** + # the "distcheck" target does "make dvi", we want it to build the texdocs + dvi: texdocs + +- texdocs: +- cd manmake ; make ps-docs pdf-docs +- +- # this target will create all HTML docs in case they are disabled by configure +- +- htmldocs: +- cd manmake; make manicon.html +- + +--- 25,28 ---- +diff -crB yacas-1.2.2old/Makefile.in yacas-1.2.2new/Makefile.in +*** yacas-1.2.2old/Makefile.in 2007-09-27 15:24:37.000000000 +0200 +--- yacas-1.2.2new/Makefile.in 2010-05-01 00:33:54.000000000 +0200 +*************** +*** 99,105 **** + psdir = @psdir@ + scriptdir = @scriptdir@ + +! SUBDIRS = . docs src scripts manmake tests JavaYacas + + bin_SCRIPTS = + +--- 99,105 ---- + psdir = @psdir@ + scriptdir = @scriptdir@ + +! SUBDIRS = . docs src scripts tests JavaYacas + + bin_SCRIPTS = + +*************** +*** 470,482 **** + # the "distcheck" target does "make dvi", we want it to build the texdocs + dvi: texdocs + +- texdocs: +- cd manmake ; make ps-docs pdf-docs +- +- # this target will create all HTML docs in case they are disabled by configure +- +- htmldocs: +- cd manmake; make manicon.html +- # Tell versions [3.59,3.63) of GNU make to not export all variables. +- # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: +--- 470,473 ---- +diff -crB yacas-1.2.2old/manmake/Makefile.am yacas-1.2.2new/manmake/Makefile.am +*** yacas-1.2.2old/manmake/Makefile.am 2007-09-16 21:53:45.000000000 +0200 +--- yacas-1.2.2new/manmake/Makefile.am 2010-05-01 00:27:47.000000000 +0200 +*************** +*** 1,250 **** +! ## Makefile.am -- Process this file with automake to produce Makefile.in + +! # $(srcdir) is the manmake/ directory and $(top_srcdir) is the Yacas tree +! # so this file should work even if we are building Yacas in a different directory + +! # newly compiled version of yacas in ../src (not necessarily under $(srcdir)) +! ouryacas = ../src/yacas --rootdir $(top_srcdir)/scripts/:../scripts/ + +! # top target +! ## BOOKS_HTML is either "manicon.html" or empty +! ## PS_DOCS is either "ps-docs" or empty +! ## PDF_DOCS is either "pdf-docs" or empty +! all-am: @BOOKS_HTML@ @PS_DOCS@ @PDF_DOCS@ hints + +! noinst_PROGRAMS = manripper removeduplicates + +! manripper_SOURCES = manripper.cpp + +! removeduplicates_SOURCES = removeduplicates.cpp + +! hints: manripper removeduplicates $(REFSOURCES) $(REFPROGSOURCES) ref.book.txt refprog.book.txt +! rm -f hints.unsorted +! for file in ref.book.txt $(REFSOURCES) refprog.book.txt $(REFPROGSOURCES); do \ +! ./manripper $(srcdir)/"$$file" >> hints.unsorted ; done +! sort -t ":" hints.unsorted > hints.sorted +! ./removeduplicates hints.sorted hints.singlesorted +! echo "::::" > tail.txt +! cat hints.singlesorted tail.txt > hints + +! ## ytxt2tex is to be installed in $(bindir). +! bin_SCRIPTS = ytxt2tex +! ## It needs the following scripts: +! ytxt2tex_DEPS = book2TeX.sh book2TeX.ys txt2yacasdoc.pl + +! BOOKS = intro.book coding.book ref.book refprog.book essays.book \ +! Algo.book + +! BOOKSOURCES = intro.book.txt coding.book.txt ref.book.txt refprog.book.txt \ +! essays.book.txt Algo.book.txt + +! PS_DOCS = intro.book.ps coding.book.ps essays.book.ps ref.book.ps \ +! refprog.book.ps Algo.book.ps + +! PDF_DOCS = intro.book.pdf coding.book.pdf essays.book.pdf ref.book.pdf \ +! refprog.book.pdf Algo.book.pdf + +! # refprog.html is not listed because it is generated together with ref.html +! HTMLBOOKS = intromanual.html codingmanual.html essaysmanual.html refmanual.html refprogmanual.html \ +! Algomanual.html + +! INTROCHAPTERS = FDL.chapt cl-options.chapt config.chapt addons.chapt + + + +! INTROSOURCES = FDL.chapt.txt cl-options.chapt.txt config.chapt.txt addons.chapt.txt + + +! ALGOCHAPTERS = algo-basic.chapt algo-numapprox.chapt \ +! algorithms-elemfunc.chapt algorithms-specfunc.chapt \ +! algorithms-numtheory.chapt algorithms-integration.chapt \ +! algorithms-multivar.chapt SturmSequences.chapt FDL.chapt \ +! algo-refs.chapt algo-contfrac.chapt algorithms-transforms.chapt + +! ALGOSOURCES = algo-basic.chapt.txt algo-numapprox.chapt.txt \ +! algorithms-elemfunc.chapt.txt algorithms-specfunc.chapt.txt \ +! algorithms-numtheory.chapt.txt algorithms-integration.chapt.txt \ +! algorithms-multivar.chapt.txt SturmSequences.chapt.txt FDL.chapt.txt \ +! algo-refs.chapt.txt algo-contfrac.chapt.txt algorithms-transforms.chapt.txt + +! REFCHAPTERS = arith.chapt calc.chapt complex.chapt solvers.chapt simplify.chapt ode.chapt linalg.chapt \ +! univar.chapt lists.chapt functional.chapt controlflow.chapt \ +! preds.chapt logic.chapt const.chapt vars.chapt io.chapt \ +! numtheory.chapt strings.chapt transforms.chapt cl-options.chapt \ +! probability-and-statistics.chapt FDL.chapt + +! REFSOURCES = arith.chapt.txt calc.chapt.txt complex.chapt.txt \ +! solvers.chapt.txt simplify.chapt.txt ode.chapt.txt \ +! linalg.chapt.txt univar.chapt.txt lists.chapt.txt cl-options.chapt.txt \ +! functional.chapt.txt controlflow.chapt.txt preds.chapt.txt \ +! logic.chapt.txt const.chapt.txt vars.chapt.txt io.chapt.txt \ +! numtheory.chapt.txt strings.chapt.txt transforms.chapt.txt \ +! probability-and-statistics.chapt.txt FDL.chapt.txt + + +! REFPROGCHAPTERS = FDL.chapt glossary.chapt \ +! GPL.chapt numerics.chapt +! # GPL.chapt has no .txt source +! REFPROGSOURCES = FDL.chapt.txt glossary.chapt.txt \ +! numerics.chapt.txt + +! CODINGCHAPTERS = YacasDebugger.chapt FDL.chapt +! CODINGSOURCES = YacasDebugger.chapt.txt FDL.chapt.txt + +! ESSAYCHAPTERS = ABIN-grammar.chapt \ +! SimpleTools.chapt CVS-Howto.chapt YacasDocs.chapt \ +! wester-1994.chapt new.chapt paper.chapt \ +! wordproblems.chapt FDL.chapt BuildSystem.chapt + +! ESSAYSOURCES = ABIN-grammar.chapt.txt \ +! SimpleTools.chapt.txt CVS-Howto.chapt.txt YacasDocs.chapt.txt \ +! paper.chapt.txt wester-1994.chapt.txt new.chapt.txt \ +! wordproblems.chapt.txt FDL.chapt.txt BuildSystem.chapt.txt + + +! # Yacas test code extracted from the docs +! TESTCODESNIPPETS = wester-1994.yts ref.book.yts refprog.book.yts + +! ## This means: build wester-1994.yts etc. if running tests +! check_SCRIPTS = $(TESTCODESNIPPETS) + + +! EXTRA_DIST = txt2example.pl book2txt.sh book2txt.ys \ +! book2xml.sh book2xml.ys \ +! book2ys.sh book2ys.ys ys2book.pl \ +! ytxt2tex $(ytxt2tex_DEPS) \ +! manualmaker indexmaker styleplain \ +! $(REFSOURCES) $(BOOKSOURCES) $(ESSAYSOURCES) $(CODINGSOURCES) \ +! $(INTROSOURCES) \ +! $(REFPROGSOURCES) $(ALGOSOURCES) \ +! dummies hints + +! # Stuff for automatic generation of Yacas books + +! SUFFIXES = .chapt.txt .chapt .book.tex .book.txt .book .tex .dvi .ps .pdf .ys + +! .chapt.txt.chapt: +! perl $(srcdir)/txt2yacasdoc.pl < $< > $@ + +! .book.txt.book: +! perl $(srcdir)/txt2yacasdoc.pl < $< > $@ + +! .book.book.tex: +! sh $(srcdir)/book2TeX.sh -run "$(ouryacas)" $< $@ + +! .tex.dvi: +! latex $< > /dev/null +! latex $< > /dev/null +! # The perl filter is used to help the 'makeindex' command: +! # 1) replace \verb|...| by \verb=...= +! # 2) escape ()|@! using a preceding quote " +! # Note that @ and ! are not always escaped because they are sometimes part of the index entry and sometimes control chars. Heuristics are used to guess correctly. +! @perl -pe 's/(\\verb)\|([^|]*)\|/$$1=$$2=/g;s/([()|])/"$$1/g;if(/\@/){s/!/"!/g;};s/\@([^\\])/"\@$$1/g;'<$*.idx>$*.1.idx +! @makeindex $*.1.idx -o $*.ind || echo "***Warning: a problem with 'makeindex'" +! latex $< > /dev/null + +! .dvi.ps: +! dvips -q -o $@ $< +! @echo "***Documentation created:" $*.ps + +! .dvi.pdf: +! pdflatex $* > /dev/null +! @echo "***Documentation created:" $*.pdf + +! .chapt.ys: +! sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ + +! .chapt.yts: +! sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ + +! # generate test code from book sources + +! ref.book.yts: $(REFSOURCES) $(srcdir)/txt2example.pl +! @echo "// tests for ref.book" > $@ +! for file in $(REFSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done + +! refprog.book.yts: $(REFPROGSOURCES) $(srcdir)/txt2example.pl +! @echo "// tests for refprog.book" > $@ +! for file in $(REFPROGSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done + + +! # specify books that need chapters +! essays.book.tex: essays.book $(ESSAYCHAPTERS) +! ref.book.tex : ref.book $(REFCHAPTERS) +! refprog.book.tex : refprog.book $(REFPROGCHAPTERS) +! coding.book.tex : coding.book $(CODINGCHAPTERS) +! intro.book.tex: intro.book $(INTROCHAPTERS) +! Algo.book.tex: Algo.book $(ALGOCHAPTERS) + +! # special "virtual" chapter built from corefunctions.h. This is printed by a special program "gencorefunctions", compiled together with yacas. + + +! # special chapter copied from the GPL (need to replace "<" and ">") +! GPL.chapt: $(top_srcdir)/COPYING +! cat $(top_srcdir)/COPYING | sed -e 's,<,{<},g;s,>,{>},g;' | perl $(srcdir)/txt2yacasdoc.pl > $@ + + + +! ps-docs: $(PS_DOCS) +! pdf-docs: $(PDF_DOCS) + +! CLEANFILES = books.html *.tex *.dvi *.aux *.idx *.ind *.ilg *.toc *.log *.ps *.pdf *.funcs.js \ +! coding*.html intro*.html ref*.html essays*.html Algo*.html *.o core *~ texdocs.c \ +! $(REFCHAPTERS) $(ESSAYCHAPTERS) $(REFPROGCHAPTERS) $(CODINGCHAPTERS) \ +! $(TESTCODESNIPPETS) $(ALGOCHAPTERS) $(BOOKS) manicon.html + +! # The top HTML docs target is now "manicon.html" that is built by GenerateIndex(). +! # The dependence on $(HTMLBOOKS) is only to make sure that all HTML docs +! # are built - in fact manicon.html is a constant file and has no dependencies. +! manicon.html: books.html $(HTMLBOOKS) + +! # books.html only depends on top book files (*.book.txt). +! books.html: $(BOOKS) $(srcdir)/indexmaker $(srcdir)/styleplain +! -echo '[DefaultDirectory("$(srcdir)/"); Use("indexmaker"); GenerateIndex();];' | $(ouryacas) -fpc + +! intromanual.html : intro.book $(INTROCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("intro");];' | $(ouryacas) -fpc + +! codingmanual.html : coding.book $(CODINGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("coding");];' | $(ouryacas) -fpc + +! essaysmanual.html : essays.book $(ESSAYCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("essays");];' | $(ouryacas) -fpc + +! refmanual.html : ref.book $(REFCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("ref");];' | $(ouryacas) -fpc + +! refprogmanual.html : ref.book $(REFCHAPTERS) refprog.book $(REFPROGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("refprog");];' | $(ouryacas) -fpc + +! Algomanual.html : Algo.book $(ALGOCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("Algo");];' | $(ouryacas) -fpc + +! ## Hook to install documentation +! install-data-local: @INSTALL_HTML@ @INSTALL_PS@ install-scripts install-hints + +! install-hints: hints +! $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/documentation +! $(INSTALL_DATA) hints $(DESTDIR)$(pkgdatadir)/documentation/hints + +! install-scripts: $(ytxt2tex_DEPS) +! $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/manmake/ +! -for file in $(ytxt2tex_DEPS); do \ +! $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/manmake/$$file; \ +! done + +! install-html: books.html +! $(mkinstalldirs) $(DESTDIR)$(htmldir)/ +! $(INSTALL_DATA) $(top_srcdir)/docs/yacaslogo.gif $(DESTDIR)$(htmldir)/ +! -for file in *.html; do \ +! $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir)/$$file; \ +! done + +! install-ps: ps-docs +! $(mkinstalldirs) $(DESTDIR)$(psdir)/ +! -for file in $(PS_DOCS); do \ +! $(INSTALL_DATA) $$file $(DESTDIR)$(psdir)/$$file; \ +! done + +! # gzip $(DESTDIR)$(psdir)/$$file; + +--- 1,250 ---- +! # ## Makefile.am -- Process this file with automake to produce Makefile.in + +! # # $(srcdir) is the manmake/ directory and $(top_srcdir) is the Yacas tree +! # # so this file should work even if we are building Yacas in a different directory + +! # # newly compiled version of yacas in ../src (not necessarily under $(srcdir)) +! # ouryacas = ../src/yacas --rootdir $(top_srcdir)/scripts/:../scripts/ + +! # # top target +! # ## BOOKS_HTML is either "manicon.html" or empty +! # ## PS_DOCS is either "ps-docs" or empty +! # ## PDF_DOCS is either "pdf-docs" or empty +! # all-am: @BOOKS_HTML@ @PS_DOCS@ @PDF_DOCS@ hints + +! # noinst_PROGRAMS = manripper removeduplicates + +! # manripper_SOURCES = manripper.cpp + +! # removeduplicates_SOURCES = removeduplicates.cpp + +! # hints: manripper removeduplicates $(REFSOURCES) $(REFPROGSOURCES) ref.book.txt refprog.book.txt +! # rm -f hints.unsorted +! # for file in ref.book.txt $(REFSOURCES) refprog.book.txt $(REFPROGSOURCES); do \ +! # ./manripper $(srcdir)/"$$file" >> hints.unsorted ; done +! # sort -t ":" hints.unsorted > hints.sorted +! # ./removeduplicates hints.sorted hints.singlesorted +! # echo "::::" > tail.txt +! # cat hints.singlesorted tail.txt > hints + +! # ## ytxt2tex is to be installed in $(bindir). +! # bin_SCRIPTS = ytxt2tex +! # ## It needs the following scripts: +! # ytxt2tex_DEPS = book2TeX.sh book2TeX.ys txt2yacasdoc.pl + +! # BOOKS = intro.book coding.book ref.book refprog.book essays.book \ +! # Algo.book + +! # BOOKSOURCES = intro.book.txt coding.book.txt ref.book.txt refprog.book.txt \ +! # essays.book.txt Algo.book.txt + +! # PS_DOCS = intro.book.ps coding.book.ps essays.book.ps ref.book.ps \ +! # refprog.book.ps Algo.book.ps + +! # PDF_DOCS = intro.book.pdf coding.book.pdf essays.book.pdf ref.book.pdf \ +! # refprog.book.pdf Algo.book.pdf + +! # # refprog.html is not listed because it is generated together with ref.html +! # HTMLBOOKS = intromanual.html codingmanual.html essaysmanual.html refmanual.html refprogmanual.html \ +! # Algomanual.html + +! # INTROCHAPTERS = FDL.chapt cl-options.chapt config.chapt addons.chapt + + + +! # INTROSOURCES = FDL.chapt.txt cl-options.chapt.txt config.chapt.txt addons.chapt.txt + + +! # ALGOCHAPTERS = algo-basic.chapt algo-numapprox.chapt \ +! # algorithms-elemfunc.chapt algorithms-specfunc.chapt \ +! # algorithms-numtheory.chapt algorithms-integration.chapt \ +! # algorithms-multivar.chapt SturmSequences.chapt FDL.chapt \ +! # algo-refs.chapt algo-contfrac.chapt algorithms-transforms.chapt + +! # ALGOSOURCES = algo-basic.chapt.txt algo-numapprox.chapt.txt \ +! # algorithms-elemfunc.chapt.txt algorithms-specfunc.chapt.txt \ +! # algorithms-numtheory.chapt.txt algorithms-integration.chapt.txt \ +! # algorithms-multivar.chapt.txt SturmSequences.chapt.txt FDL.chapt.txt \ +! # algo-refs.chapt.txt algo-contfrac.chapt.txt algorithms-transforms.chapt.txt + +! # REFCHAPTERS = arith.chapt calc.chapt complex.chapt solvers.chapt simplify.chapt ode.chapt linalg.chapt \ +! # univar.chapt lists.chapt functional.chapt controlflow.chapt \ +! # preds.chapt logic.chapt const.chapt vars.chapt io.chapt \ +! # numtheory.chapt strings.chapt transforms.chapt cl-options.chapt \ +! # probability-and-statistics.chapt FDL.chapt + +! # REFSOURCES = arith.chapt.txt calc.chapt.txt complex.chapt.txt \ +! # solvers.chapt.txt simplify.chapt.txt ode.chapt.txt \ +! # linalg.chapt.txt univar.chapt.txt lists.chapt.txt cl-options.chapt.txt \ +! # functional.chapt.txt controlflow.chapt.txt preds.chapt.txt \ +! # logic.chapt.txt const.chapt.txt vars.chapt.txt io.chapt.txt \ +! # numtheory.chapt.txt strings.chapt.txt transforms.chapt.txt \ +! # probability-and-statistics.chapt.txt FDL.chapt.txt + + +! # REFPROGCHAPTERS = FDL.chapt glossary.chapt \ +! # GPL.chapt numerics.chapt +! # # GPL.chapt has no .txt source +! # REFPROGSOURCES = FDL.chapt.txt glossary.chapt.txt \ +! # numerics.chapt.txt + +! # CODINGCHAPTERS = YacasDebugger.chapt FDL.chapt +! # CODINGSOURCES = YacasDebugger.chapt.txt FDL.chapt.txt + +! # ESSAYCHAPTERS = ABIN-grammar.chapt \ +! # SimpleTools.chapt CVS-Howto.chapt YacasDocs.chapt \ +! # wester-1994.chapt new.chapt paper.chapt \ +! # wordproblems.chapt FDL.chapt BuildSystem.chapt + +! # ESSAYSOURCES = ABIN-grammar.chapt.txt \ +! # SimpleTools.chapt.txt CVS-Howto.chapt.txt YacasDocs.chapt.txt \ +! # paper.chapt.txt wester-1994.chapt.txt new.chapt.txt \ +! # wordproblems.chapt.txt FDL.chapt.txt BuildSystem.chapt.txt + + +! # # Yacas test code extracted from the docs +! # TESTCODESNIPPETS = wester-1994.yts ref.book.yts refprog.book.yts + +! # ## This means: build wester-1994.yts etc. if running tests +! # check_SCRIPTS = $(TESTCODESNIPPETS) + + +! # EXTRA_DIST = txt2example.pl book2txt.sh book2txt.ys \ +! # book2xml.sh book2xml.ys \ +! # book2ys.sh book2ys.ys ys2book.pl \ +! # ytxt2tex $(ytxt2tex_DEPS) \ +! # manualmaker indexmaker styleplain \ +! # $(REFSOURCES) $(BOOKSOURCES) $(ESSAYSOURCES) $(CODINGSOURCES) \ +! # $(INTROSOURCES) \ +! # $(REFPROGSOURCES) $(ALGOSOURCES) \ +! # dummies hints + +! # # Stuff for automatic generation of Yacas books + +! # SUFFIXES = .chapt.txt .chapt .book.tex .book.txt .book .tex .dvi .ps .pdf .ys + +! # .chapt.txt.chapt: +! # perl $(srcdir)/txt2yacasdoc.pl < $< > $@ + +! # .book.txt.book: +! # perl $(srcdir)/txt2yacasdoc.pl < $< > $@ + +! # .book.book.tex: +! # sh $(srcdir)/book2TeX.sh -run "$(ouryacas)" $< $@ + +! # .tex.dvi: +! # latex $< > /dev/null +! # latex $< > /dev/null +! # # The perl filter is used to help the 'makeindex' command: +! # # 1) replace \verb|...| by \verb=...= +! # # 2) escape ()|@! using a preceding quote " +! # # Note that @ and ! are not always escaped because they are sometimes part of the index entry and sometimes control chars. Heuristics are used to guess correctly. +! # @perl -pe 's/(\\verb)\|([^|]*)\|/$$1=$$2=/g;s/([()|])/"$$1/g;if(/\@/){s/!/"!/g;};s/\@([^\\])/"\@$$1/g;'<$*.idx>$*.1.idx +! # @makeindex $*.1.idx -o $*.ind || echo "***Warning: a problem with 'makeindex'" +! # latex $< > /dev/null + +! # .dvi.ps: +! # dvips -q -o $@ $< +! # @echo "***Documentation created:" $*.ps + +! # .dvi.pdf: +! # pdflatex $* > /dev/null +! # @echo "***Documentation created:" $*.pdf + +! # .chapt.ys: +! # sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ + +! # .chapt.yts: +! # sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ + +! # # generate test code from book sources + +! # ref.book.yts: $(REFSOURCES) $(srcdir)/txt2example.pl +! # @echo "// tests for ref.book" > $@ +! # for file in $(REFSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done + +! # refprog.book.yts: $(REFPROGSOURCES) $(srcdir)/txt2example.pl +! # @echo "// tests for refprog.book" > $@ +! # for file in $(REFPROGSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done + + +! # # specify books that need chapters +! # essays.book.tex: essays.book $(ESSAYCHAPTERS) +! # ref.book.tex : ref.book $(REFCHAPTERS) +! # refprog.book.tex : refprog.book $(REFPROGCHAPTERS) +! # coding.book.tex : coding.book $(CODINGCHAPTERS) +! # intro.book.tex: intro.book $(INTROCHAPTERS) +! # Algo.book.tex: Algo.book $(ALGOCHAPTERS) + +! # # special "virtual" chapter built from corefunctions.h. This is printed by a special program "gencorefunctions", compiled together with yacas. + + +! # # special chapter copied from the GPL (need to replace "<" and ">") +! # GPL.chapt: $(top_srcdir)/COPYING +! # cat $(top_srcdir)/COPYING | sed -e 's,<,{<},g;s,>,{>},g;' | perl $(srcdir)/txt2yacasdoc.pl > $@ + + + +! # ps-docs: $(PS_DOCS) +! # pdf-docs: $(PDF_DOCS) + +! # CLEANFILES = books.html *.tex *.dvi *.aux *.idx *.ind *.ilg *.toc *.log *.ps *.pdf *.funcs.js \ +! # coding*.html intro*.html ref*.html essays*.html Algo*.html *.o core *~ texdocs.c \ +! # $(REFCHAPTERS) $(ESSAYCHAPTERS) $(REFPROGCHAPTERS) $(CODINGCHAPTERS) \ +! # $(TESTCODESNIPPETS) $(ALGOCHAPTERS) $(BOOKS) manicon.html + +! # # The top HTML docs target is now "manicon.html" that is built by GenerateIndex(). +! # # The dependence on $(HTMLBOOKS) is only to make sure that all HTML docs +! # # are built - in fact manicon.html is a constant file and has no dependencies. +! # manicon.html: books.html $(HTMLBOOKS) + +! # # books.html only depends on top book files (*.book.txt). +! # books.html: $(BOOKS) $(srcdir)/indexmaker $(srcdir)/styleplain +! # -echo '[DefaultDirectory("$(srcdir)/"); Use("indexmaker"); GenerateIndex();];' | $(ouryacas) -fpc + +! # intromanual.html : intro.book $(INTROCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("intro");];' | $(ouryacas) -fpc + +! # codingmanual.html : coding.book $(CODINGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("coding");];' | $(ouryacas) -fpc + +! # essaysmanual.html : essays.book $(ESSAYCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("essays");];' | $(ouryacas) -fpc + +! # refmanual.html : ref.book $(REFCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("ref");];' | $(ouryacas) -fpc + +! # refprogmanual.html : ref.book $(REFCHAPTERS) refprog.book $(REFPROGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("refprog");];' | $(ouryacas) -fpc + +! # Algomanual.html : Algo.book $(ALGOCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("Algo");];' | $(ouryacas) -fpc + +! # ## Hook to install documentation +! # install-data-local: @INSTALL_HTML@ @INSTALL_PS@ install-scripts install-hints + +! # install-hints: hints +! # $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/documentation +! # $(INSTALL_DATA) hints $(DESTDIR)$(pkgdatadir)/documentation/hints + +! # install-scripts: $(ytxt2tex_DEPS) +! # $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/manmake/ +! # -for file in $(ytxt2tex_DEPS); do \ +! # $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/manmake/$$file; \ +! # done + +! # install-html: books.html +! # $(mkinstalldirs) $(DESTDIR)$(htmldir)/ +! # $(INSTALL_DATA) $(top_srcdir)/docs/yacaslogo.gif $(DESTDIR)$(htmldir)/ +! # -for file in *.html; do \ +! # $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir)/$$file; \ +! # done + +! # install-ps: ps-docs +! # $(mkinstalldirs) $(DESTDIR)$(psdir)/ +! # -for file in $(PS_DOCS); do \ +! # $(INSTALL_DATA) $$file $(DESTDIR)$(psdir)/$$file; \ +! # done + +! # # gzip $(DESTDIR)$(psdir)/$$file; + +diff -crB yacas-1.2.2old/manmake/Makefile.in yacas-1.2.2new/manmake/Makefile.in +*** yacas-1.2.2old/manmake/Makefile.in 2007-09-27 15:24:37.000000000 +0200 +--- yacas-1.2.2new/manmake/Makefile.in 2010-05-01 00:27:59.000000000 +0200 +*************** +*** 1,598 **** +! # Makefile.in generated by automake 1.6.3 from Makefile.am. +! # @configure_input@ + +! # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +! # Free Software Foundation, Inc. +! # This Makefile.in is free software; the Free Software Foundation +! # gives unlimited permission to copy and/or distribute it, +! # with or without modifications, as long as this notice is preserved. +! +! # This program is distributed in the hope that it will be useful, +! # but WITHOUT ANY WARRANTY, to the extent permitted by law; without +! # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +! # PARTICULAR PURPOSE. +! +! @SET_MAKE@ +! +! # $(srcdir) is the manmake/ directory and $(top_srcdir) is the Yacas tree +! # so this file should work even if we are building Yacas in a different directory +! SHELL = @SHELL@ +! +! srcdir = @srcdir@ +! top_srcdir = @top_srcdir@ +! VPATH = @srcdir@ +! prefix = @prefix@ +! exec_prefix = @exec_prefix@ +! +! bindir = @bindir@ +! sbindir = @sbindir@ +! libexecdir = @libexecdir@ +! datadir = @datadir@ +! sysconfdir = @sysconfdir@ +! sharedstatedir = @sharedstatedir@ +! localstatedir = @localstatedir@ +! libdir = @libdir@ +! infodir = @infodir@ +! mandir = @mandir@ +! includedir = @includedir@ +! oldincludedir = /usr/include +! pkgdatadir = $(datadir)/@PACKAGE@ +! pkglibdir = $(libdir)/@PACKAGE@ +! pkgincludedir = $(includedir)/@PACKAGE@ +! top_builddir = .. +! +! ACLOCAL = @ACLOCAL@ +! AUTOCONF = @AUTOCONF@ +! AUTOMAKE = @AUTOMAKE@ +! AUTOHEADER = @AUTOHEADER@ +! +! am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +! INSTALL = @INSTALL@ +! INSTALL_PROGRAM = @INSTALL_PROGRAM@ +! INSTALL_DATA = @INSTALL_DATA@ +! install_sh_DATA = $(install_sh) -c -m 644 +! install_sh_PROGRAM = $(install_sh) -c +! install_sh_SCRIPT = $(install_sh) -c +! INSTALL_SCRIPT = @INSTALL_SCRIPT@ +! INSTALL_HEADER = $(INSTALL_DATA) +! transform = @program_transform_name@ +! NORMAL_INSTALL = : +! PRE_INSTALL = : +! POST_INSTALL = : +! NORMAL_UNINSTALL = : +! PRE_UNINSTALL = : +! POST_UNINSTALL = : +! host_alias = @host_alias@ +! host_triplet = @host@ +! +! EXEEXT = @EXEEXT@ +! OBJEXT = @OBJEXT@ +! PATH_SEPARATOR = @PATH_SEPARATOR@ +! AMTAR = @AMTAR@ +! AR = @AR@ +! AWK = @AWK@ +! BOOKS_HTML = @BOOKS_HTML@ +! CC = @CC@ +! CHECK_ARCHIVE = @CHECK_ARCHIVE@ +! COMPRESSOR_PRG = @COMPRESSOR_PRG@ +! CPP = @CPP@ +! CXX = @CXX@ +! DEPDIR = @DEPDIR@ +! INSTALL_ARCHIVE = @INSTALL_ARCHIVE@ +! INSTALL_HTML = @INSTALL_HTML@ +! INSTALL_PS = @INSTALL_PS@ +! INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +! PACKAGE = @PACKAGE@ +! +! PDF_DOCS = intro.book.pdf coding.book.pdf essays.book.pdf ref.book.pdf \ +! refprog.book.pdf Algo.book.pdf +! +! +! PS_DOCS = intro.book.ps coding.book.ps essays.book.ps ref.book.ps \ +! refprog.book.ps Algo.book.ps +! +! RELEASE = @RELEASE@ +! SCRIPTS_DAT = @SCRIPTS_DAT@ +! STRIP = @STRIP@ +! VERSION = @VERSION@ +! am__include = @am__include@ +! am__quote = @am__quote@ +! have_dvips = @have_dvips@ +! have_gzip = @have_gzip@ +! have_latex = @have_latex@ +! have_makeindex = @have_makeindex@ +! have_pdflatex = @have_pdflatex@ +! have_perl = @have_perl@ +! htmldir = @htmldir@ +! install_sh = @install_sh@ +! psdir = @psdir@ +! scriptdir = @scriptdir@ +! +! # newly compiled version of yacas in ../src (not necessarily under $(srcdir)) +! ouryacas = ../src/yacas --rootdir $(top_srcdir)/scripts/:../scripts/ +! +! noinst_PROGRAMS = manripper removeduplicates +! +! manripper_SOURCES = manripper.cpp +! +! removeduplicates_SOURCES = removeduplicates.cpp +! +! bin_SCRIPTS = ytxt2tex +! ytxt2tex_DEPS = book2TeX.sh book2TeX.ys txt2yacasdoc.pl +! +! BOOKS = intro.book coding.book ref.book refprog.book essays.book \ +! Algo.book +! +! +! BOOKSOURCES = intro.book.txt coding.book.txt ref.book.txt refprog.book.txt \ +! essays.book.txt Algo.book.txt +! +! +! # refprog.html is not listed because it is generated together with ref.html +! HTMLBOOKS = intromanual.html codingmanual.html essaysmanual.html refmanual.html refprogmanual.html \ +! Algomanual.html +! +! +! INTROCHAPTERS = FDL.chapt cl-options.chapt config.chapt addons.chapt +! +! INTROSOURCES = FDL.chapt.txt cl-options.chapt.txt config.chapt.txt addons.chapt.txt +! +! ALGOCHAPTERS = algo-basic.chapt algo-numapprox.chapt \ +! algorithms-elemfunc.chapt algorithms-specfunc.chapt \ +! algorithms-numtheory.chapt algorithms-integration.chapt \ +! algorithms-multivar.chapt SturmSequences.chapt FDL.chapt \ +! algo-refs.chapt algo-contfrac.chapt algorithms-transforms.chapt +! +! +! ALGOSOURCES = algo-basic.chapt.txt algo-numapprox.chapt.txt \ +! algorithms-elemfunc.chapt.txt algorithms-specfunc.chapt.txt \ +! algorithms-numtheory.chapt.txt algorithms-integration.chapt.txt \ +! algorithms-multivar.chapt.txt SturmSequences.chapt.txt FDL.chapt.txt \ +! algo-refs.chapt.txt algo-contfrac.chapt.txt algorithms-transforms.chapt.txt +! +! +! REFCHAPTERS = arith.chapt calc.chapt complex.chapt solvers.chapt simplify.chapt ode.chapt linalg.chapt \ +! univar.chapt lists.chapt functional.chapt controlflow.chapt \ +! preds.chapt logic.chapt const.chapt vars.chapt io.chapt \ +! numtheory.chapt strings.chapt transforms.chapt cl-options.chapt \ +! probability-and-statistics.chapt FDL.chapt +! +! +! REFSOURCES = arith.chapt.txt calc.chapt.txt complex.chapt.txt \ +! solvers.chapt.txt simplify.chapt.txt ode.chapt.txt \ +! linalg.chapt.txt univar.chapt.txt lists.chapt.txt cl-options.chapt.txt \ +! functional.chapt.txt controlflow.chapt.txt preds.chapt.txt \ +! logic.chapt.txt const.chapt.txt vars.chapt.txt io.chapt.txt \ +! numtheory.chapt.txt strings.chapt.txt transforms.chapt.txt \ +! probability-and-statistics.chapt.txt FDL.chapt.txt +! +! +! REFPROGCHAPTERS = FDL.chapt glossary.chapt \ +! GPL.chapt numerics.chapt +! +! # GPL.chapt has no .txt source +! REFPROGSOURCES = FDL.chapt.txt glossary.chapt.txt \ +! numerics.chapt.txt +! +! +! CODINGCHAPTERS = YacasDebugger.chapt FDL.chapt +! CODINGSOURCES = YacasDebugger.chapt.txt FDL.chapt.txt +! +! ESSAYCHAPTERS = ABIN-grammar.chapt \ +! SimpleTools.chapt CVS-Howto.chapt YacasDocs.chapt \ +! wester-1994.chapt new.chapt paper.chapt \ +! wordproblems.chapt FDL.chapt BuildSystem.chapt +! +! +! ESSAYSOURCES = ABIN-grammar.chapt.txt \ +! SimpleTools.chapt.txt CVS-Howto.chapt.txt YacasDocs.chapt.txt \ +! paper.chapt.txt wester-1994.chapt.txt new.chapt.txt \ +! wordproblems.chapt.txt FDL.chapt.txt BuildSystem.chapt.txt +! +! +! # Yacas test code extracted from the docs +! TESTCODESNIPPETS = wester-1994.yts ref.book.yts refprog.book.yts +! +! check_SCRIPTS = $(TESTCODESNIPPETS) +! +! EXTRA_DIST = txt2example.pl book2txt.sh book2txt.ys \ +! book2xml.sh book2xml.ys \ +! book2ys.sh book2ys.ys ys2book.pl \ +! ytxt2tex $(ytxt2tex_DEPS) \ +! manualmaker indexmaker styleplain \ +! $(REFSOURCES) $(BOOKSOURCES) $(ESSAYSOURCES) $(CODINGSOURCES) \ +! $(INTROSOURCES) \ +! $(REFPROGSOURCES) $(ALGOSOURCES) \ +! dummies hints +! +! +! +! # Stuff for automatic generation of Yacas books +! SUFFIXES = .chapt.txt .chapt .book.tex .book.txt .book .tex .dvi .ps .pdf .ys +! +! CLEANFILES = books.html *.tex *.dvi *.aux *.idx *.ind *.ilg *.toc *.log *.ps *.pdf *.funcs.js \ +! coding*.html intro*.html ref*.html essays*.html Algo*.html *.o core *~ texdocs.c \ +! $(REFCHAPTERS) $(ESSAYCHAPTERS) $(REFPROGCHAPTERS) $(CODINGCHAPTERS) \ +! $(TESTCODESNIPPETS) $(ALGOCHAPTERS) $(BOOKS) manicon.html +! +! subdir = manmake +! mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +! CONFIG_HEADER = $(top_builddir)/config.h +! CONFIG_CLEAN_FILES = +! noinst_PROGRAMS = manripper$(EXEEXT) removeduplicates$(EXEEXT) +! PROGRAMS = $(noinst_PROGRAMS) +! +! am_manripper_OBJECTS = manripper.$(OBJEXT) +! manripper_OBJECTS = $(am_manripper_OBJECTS) +! manripper_LDADD = $(LDADD) +! manripper_DEPENDENCIES = +! manripper_LDFLAGS = +! am_removeduplicates_OBJECTS = removeduplicates.$(OBJEXT) +! removeduplicates_OBJECTS = $(am_removeduplicates_OBJECTS) +! removeduplicates_LDADD = $(LDADD) +! removeduplicates_DEPENDENCIES = +! removeduplicates_LDFLAGS = +! SCRIPTS = $(bin_SCRIPTS) +! +! +! DEFS = @DEFS@ +! DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +! CPPFLAGS = @CPPFLAGS@ +! LDFLAGS = @LDFLAGS@ +! LIBS = @LIBS@ +! depcomp = $(SHELL) $(top_srcdir)/depcomp +! am__depfiles_maybe = depfiles +! @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/manripper.Po \ +! @AMDEP_TRUE@ ./$(DEPDIR)/removeduplicates.Po +! CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +! $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +! CXXLD = $(CXX) +! CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ +! -o $@ +! CXXFLAGS = @CXXFLAGS@ +! CFLAGS = @CFLAGS@ +! COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +! $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +! CCLD = $(CC) +! LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +! DIST_SOURCES = $(manripper_SOURCES) $(removeduplicates_SOURCES) +! DIST_COMMON = README Makefile.am Makefile.in +! SOURCES = $(manripper_SOURCES) $(removeduplicates_SOURCES) +! +! all: all-am +! +! .SUFFIXES: +! .SUFFIXES: .chapt.txt .chapt .book.tex .book.txt .book .tex .dvi .ps .pdf .ys .cpp .o .obj .yts +! $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +! cd $(top_srcdir) && \ +! $(AUTOMAKE) --gnu manmake/Makefile +! Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +! cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +! +! clean-noinstPROGRAMS: +! -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) +! manripper$(EXEEXT): $(manripper_OBJECTS) $(manripper_DEPENDENCIES) +! @rm -f manripper$(EXEEXT) +! $(CXXLINK) $(manripper_LDFLAGS) $(manripper_OBJECTS) $(manripper_LDADD) $(LIBS) +! removeduplicates$(EXEEXT): $(removeduplicates_OBJECTS) $(removeduplicates_DEPENDENCIES) +! @rm -f removeduplicates$(EXEEXT) +! $(CXXLINK) $(removeduplicates_LDFLAGS) $(removeduplicates_OBJECTS) $(removeduplicates_LDADD) $(LIBS) +! binSCRIPT_INSTALL = $(INSTALL_SCRIPT) +! install-binSCRIPTS: $(bin_SCRIPTS) +! @$(NORMAL_INSTALL) +! $(mkinstalldirs) $(DESTDIR)$(bindir) +! @list='$(bin_SCRIPTS)'; for p in $$list; do \ +! if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ +! if test -f $$d$$p; then \ +! f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ +! echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \ +! $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \ +! else :; fi; \ +! done +! +! uninstall-binSCRIPTS: +! @$(NORMAL_UNINSTALL) +! @list='$(bin_SCRIPTS)'; for p in $$list; do \ +! f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ +! echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ +! rm -f $(DESTDIR)$(bindir)/$$f; \ +! done +! +! mostlyclean-compile: +! -rm -f *.$(OBJEXT) core *.core +! +! distclean-compile: +! -rm -f *.tab.c +! +! @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/manripper.Po@am__quote@ +! @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/removeduplicates.Po@am__quote@ +! +! distclean-depend: +! -rm -rf ./$(DEPDIR) +! +! .cpp.o: +! @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +! @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ +! @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +! $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +! +! .cpp.obj: +! @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +! @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ +! @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +! $(CXXCOMPILE) -c -o $@ `cygpath -w $<` +! CXXDEPMODE = @CXXDEPMODE@ +! uninstall-info-am: +! +! ETAGS = etags +! ETAGSFLAGS = +! +! tags: TAGS +! +! ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) +! list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ +! unique=`for i in $$list; do \ +! if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ +! done | \ +! $(AWK) ' { files[$$0] = 1; } \ +! END { for (i in files) print i; }'`; \ +! mkid -fID $$unique +! +! TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ +! $(TAGS_FILES) $(LISP) +! tags=; \ +! here=`pwd`; \ +! list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ +! unique=`for i in $$list; do \ +! if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ +! done | \ +! $(AWK) ' { files[$$0] = 1; } \ +! END { for (i in files) print i; }'`; \ +! test -z "$(ETAGS_ARGS)$$tags$$unique" \ +! || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ +! $$tags $$unique +! +! GTAGS: +! here=`$(am__cd) $(top_builddir) && pwd` \ +! && cd $(top_srcdir) \ +! && gtags -i $(GTAGS_ARGS) $$here +! +! distclean-tags: +! -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH +! DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +! +! top_distdir = .. +! distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) +! +! distdir: $(DISTFILES) +! @list='$(DISTFILES)'; for file in $$list; do \ +! if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ +! dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ +! if test "$$dir" != "$$file" && test "$$dir" != "."; then \ +! dir="/$$dir"; \ +! $(mkinstalldirs) "$(distdir)$$dir"; \ +! else \ +! dir=''; \ +! fi; \ +! if test -d $$d/$$file; then \ +! if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ +! cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ +! fi; \ +! cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ +! else \ +! test -f $(distdir)/$$file \ +! || cp -p $$d/$$file $(distdir)/$$file \ +! || exit 1; \ +! fi; \ +! done +! check-am: all-am +! $(MAKE) $(AM_MAKEFLAGS) $(check_SCRIPTS) +! check: check-am +! all-am: Makefile $(PROGRAMS) $(SCRIPTS) +! +! installdirs: +! $(mkinstalldirs) $(DESTDIR)$(bindir) +! +! install: install-am +! install-exec: install-exec-am +! install-data: install-data-am +! uninstall: uninstall-am +! +! install-am: all-am +! @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +! +! installcheck: installcheck-am +! install-strip: +! $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ +! INSTALL_STRIP_FLAG=-s \ +! `test -z '$(STRIP)' || \ +! echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +! mostlyclean-generic: +! +! clean-generic: +! -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) +! +! distclean-generic: +! -rm -f Makefile $(CONFIG_CLEAN_FILES) +! +! maintainer-clean-generic: +! @echo "This command is intended for maintainers to use" +! @echo "it deletes files that may require special tools to rebuild." +! clean: clean-am +! +! clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am +! +! distclean: distclean-am +! +! distclean-am: clean-am distclean-compile distclean-depend \ +! distclean-generic distclean-tags +! +! dvi: dvi-am +! +! dvi-am: +! +! info: info-am +! +! info-am: +! +! install-data-am: install-data-local +! +! install-exec-am: install-binSCRIPTS +! +! install-info: install-info-am +! +! install-man: +! +! installcheck-am: +! +! maintainer-clean: maintainer-clean-am +! +! maintainer-clean-am: distclean-am maintainer-clean-generic +! +! mostlyclean: mostlyclean-am +! +! mostlyclean-am: mostlyclean-compile mostlyclean-generic +! +! uninstall-am: uninstall-binSCRIPTS uninstall-info-am +! +! .PHONY: GTAGS all all-am check check-am clean clean-generic \ +! clean-noinstPROGRAMS distclean distclean-compile \ +! distclean-depend distclean-generic distclean-tags distdir dvi \ +! dvi-am info info-am install install-am install-binSCRIPTS \ +! install-data install-data-am install-data-local install-exec \ +! install-exec-am install-info install-info-am install-man \ +! install-strip installcheck installcheck-am installdirs \ +! maintainer-clean maintainer-clean-generic mostlyclean \ +! mostlyclean-compile mostlyclean-generic tags uninstall \ +! uninstall-am uninstall-binSCRIPTS uninstall-info-am +! +! +! # top target +! all-am: @BOOKS_HTML@ @PS_DOCS@ @PDF_DOCS@ hints +! +! hints: manripper removeduplicates $(REFSOURCES) $(REFPROGSOURCES) ref.book.txt refprog.book.txt +! rm -f hints.unsorted +! for file in ref.book.txt $(REFSOURCES) refprog.book.txt $(REFPROGSOURCES); do \ +! ./manripper $(srcdir)/"$$file" >> hints.unsorted ; done +! sort -t ":" hints.unsorted > hints.sorted +! ./removeduplicates hints.sorted hints.singlesorted +! echo "::::" > tail.txt +! cat hints.singlesorted tail.txt > hints +! +! .chapt.txt.chapt: +! perl $(srcdir)/txt2yacasdoc.pl < $< > $@ +! +! .book.txt.book: +! perl $(srcdir)/txt2yacasdoc.pl < $< > $@ +! +! .book.book.tex: +! sh $(srcdir)/book2TeX.sh -run "$(ouryacas)" $< $@ +! +! .tex.dvi: +! latex $< > /dev/null +! latex $< > /dev/null +! # The perl filter is used to help the 'makeindex' command: +! # 1) replace \verb|...| by \verb=...= +! # 2) escape ()|@! using a preceding quote " +! # Note that @ and ! are not always escaped because they are sometimes part of the index entry and sometimes control chars. Heuristics are used to guess correctly. +! @perl -pe 's/(\\verb)\|([^|]*)\|/$$1=$$2=/g;s/([()|])/"$$1/g;if(/\@/){s/!/"!/g;};s/\@([^\\])/"\@$$1/g;'<$*.idx>$*.1.idx +! @makeindex $*.1.idx -o $*.ind || echo "***Warning: a problem with 'makeindex'" +! latex $< > /dev/null +! +! .dvi.ps: +! dvips -q -o $@ $< +! @echo "***Documentation created:" $*.ps +! +! .dvi.pdf: +! pdflatex $* > /dev/null +! @echo "***Documentation created:" $*.pdf +! +! .chapt.ys: +! sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ +! +! .chapt.yts: +! sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ +! +! # generate test code from book sources +! +! ref.book.yts: $(REFSOURCES) $(srcdir)/txt2example.pl +! @echo "// tests for ref.book" > $@ +! for file in $(REFSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done +! +! refprog.book.yts: $(REFPROGSOURCES) $(srcdir)/txt2example.pl +! @echo "// tests for refprog.book" > $@ +! for file in $(REFPROGSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done +! +! # specify books that need chapters +! essays.book.tex: essays.book $(ESSAYCHAPTERS) +! ref.book.tex : ref.book $(REFCHAPTERS) +! refprog.book.tex : refprog.book $(REFPROGCHAPTERS) +! coding.book.tex : coding.book $(CODINGCHAPTERS) +! intro.book.tex: intro.book $(INTROCHAPTERS) +! Algo.book.tex: Algo.book $(ALGOCHAPTERS) +! +! # special "virtual" chapter built from corefunctions.h. This is printed by a special program "gencorefunctions", compiled together with yacas. +! +! # special chapter copied from the GPL (need to replace "<" and ">") +! GPL.chapt: $(top_srcdir)/COPYING +! cat $(top_srcdir)/COPYING | sed -e 's,<,{<},g;s,>,{>},g;' | perl $(srcdir)/txt2yacasdoc.pl > $@ +! +! ps-docs: $(PS_DOCS) +! pdf-docs: $(PDF_DOCS) +! +! # The top HTML docs target is now "manicon.html" that is built by GenerateIndex(). +! # The dependence on $(HTMLBOOKS) is only to make sure that all HTML docs +! # are built - in fact manicon.html is a constant file and has no dependencies. +! manicon.html: books.html $(HTMLBOOKS) +! +! # books.html only depends on top book files (*.book.txt). +! books.html: $(BOOKS) $(srcdir)/indexmaker $(srcdir)/styleplain +! -echo '[DefaultDirectory("$(srcdir)/"); Use("indexmaker"); GenerateIndex();];' | $(ouryacas) -fpc +! +! intromanual.html : intro.book $(INTROCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("intro");];' | $(ouryacas) -fpc +! +! codingmanual.html : coding.book $(CODINGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("coding");];' | $(ouryacas) -fpc +! +! essaysmanual.html : essays.book $(ESSAYCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("essays");];' | $(ouryacas) -fpc +! +! refmanual.html : ref.book $(REFCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("ref");];' | $(ouryacas) -fpc +! +! refprogmanual.html : ref.book $(REFCHAPTERS) refprog.book $(REFPROGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("refprog");];' | $(ouryacas) -fpc +! +! Algomanual.html : Algo.book $(ALGOCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("Algo");];' | $(ouryacas) -fpc +! +! install-data-local: @INSTALL_HTML@ @INSTALL_PS@ install-scripts install-hints +! +! install-hints: hints +! $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/documentation +! $(INSTALL_DATA) hints $(DESTDIR)$(pkgdatadir)/documentation/hints +! +! install-scripts: $(ytxt2tex_DEPS) +! $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/manmake/ +! -for file in $(ytxt2tex_DEPS); do \ +! $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/manmake/$$file; \ +! done +! +! install-html: books.html +! $(mkinstalldirs) $(DESTDIR)$(htmldir)/ +! $(INSTALL_DATA) $(top_srcdir)/docs/yacaslogo.gif $(DESTDIR)$(htmldir)/ +! -for file in *.html; do \ +! $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir)/$$file; \ +! done +! +! install-ps: ps-docs +! $(mkinstalldirs) $(DESTDIR)$(psdir)/ +! -for file in $(PS_DOCS); do \ +! $(INSTALL_DATA) $$file $(DESTDIR)$(psdir)/$$file; \ +! done +! +! # gzip $(DESTDIR)$(psdir)/$$file; +! # Tell versions [3.59,3.63) of GNU make to not export all variables. +! # Otherwise a system limit (for SysV at least) may be exceeded. +! .NOEXPORT: +--- 1,598 ---- +! # # Makefile.in generated by automake 1.6.3 from Makefile.am. +! # # @configure_input@ + +! # # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +! # # Free Software Foundation, Inc. +! # # This Makefile.in is free software; the Free Software Foundation +! # # gives unlimited permission to copy and/or distribute it, +! # # with or without modifications, as long as this notice is preserved. +! +! # # This program is distributed in the hope that it will be useful, +! # # but WITHOUT ANY WARRANTY, to the extent permitted by law; without +! # # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +! # # PARTICULAR PURPOSE. +! +! # @SET_MAKE@ +! +! # # $(srcdir) is the manmake/ directory and $(top_srcdir) is the Yacas tree +! # # so this file should work even if we are building Yacas in a different directory +! # SHELL = @SHELL@ +! +! # srcdir = @srcdir@ +! # top_srcdir = @top_srcdir@ +! # VPATH = @srcdir@ +! # prefix = @prefix@ +! # exec_prefix = @exec_prefix@ +! +! # bindir = @bindir@ +! # sbindir = @sbindir@ +! # libexecdir = @libexecdir@ +! # datadir = @datadir@ +! # sysconfdir = @sysconfdir@ +! # sharedstatedir = @sharedstatedir@ +! # localstatedir = @localstatedir@ +! # libdir = @libdir@ +! # infodir = @infodir@ +! # mandir = @mandir@ +! # includedir = @includedir@ +! # oldincludedir = /usr/include +! # pkgdatadir = $(datadir)/@PACKAGE@ +! # pkglibdir = $(libdir)/@PACKAGE@ +! # pkgincludedir = $(includedir)/@PACKAGE@ +! # top_builddir = .. +! +! # ACLOCAL = @ACLOCAL@ +! # AUTOCONF = @AUTOCONF@ +! # AUTOMAKE = @AUTOMAKE@ +! # AUTOHEADER = @AUTOHEADER@ +! +! # am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +! # INSTALL = @INSTALL@ +! # INSTALL_PROGRAM = @INSTALL_PROGRAM@ +! # INSTALL_DATA = @INSTALL_DATA@ +! # install_sh_DATA = $(install_sh) -c -m 644 +! # install_sh_PROGRAM = $(install_sh) -c +! # install_sh_SCRIPT = $(install_sh) -c +! # INSTALL_SCRIPT = @INSTALL_SCRIPT@ +! # INSTALL_HEADER = $(INSTALL_DATA) +! # transform = @program_transform_name@ +! # NORMAL_INSTALL = : +! # PRE_INSTALL = : +! # POST_INSTALL = : +! # NORMAL_UNINSTALL = : +! # PRE_UNINSTALL = : +! # POST_UNINSTALL = : +! # host_alias = @host_alias@ +! # host_triplet = @host@ +! +! # EXEEXT = @EXEEXT@ +! # OBJEXT = @OBJEXT@ +! # PATH_SEPARATOR = @PATH_SEPARATOR@ +! # AMTAR = @AMTAR@ +! # AR = @AR@ +! # AWK = @AWK@ +! # BOOKS_HTML = @BOOKS_HTML@ +! # CC = @CC@ +! # CHECK_ARCHIVE = @CHECK_ARCHIVE@ +! # COMPRESSOR_PRG = @COMPRESSOR_PRG@ +! # CPP = @CPP@ +! # CXX = @CXX@ +! # DEPDIR = @DEPDIR@ +! # INSTALL_ARCHIVE = @INSTALL_ARCHIVE@ +! # INSTALL_HTML = @INSTALL_HTML@ +! # INSTALL_PS = @INSTALL_PS@ +! # INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +! # PACKAGE = @PACKAGE@ +! +! # PDF_DOCS = intro.book.pdf coding.book.pdf essays.book.pdf ref.book.pdf \ +! # refprog.book.pdf Algo.book.pdf +! +! +! # PS_DOCS = intro.book.ps coding.book.ps essays.book.ps ref.book.ps \ +! # refprog.book.ps Algo.book.ps +! +! # RELEASE = @RELEASE@ +! # SCRIPTS_DAT = @SCRIPTS_DAT@ +! # STRIP = @STRIP@ +! # VERSION = @VERSION@ +! # am__include = @am__include@ +! # am__quote = @am__quote@ +! # have_dvips = @have_dvips@ +! # have_gzip = @have_gzip@ +! # have_latex = @have_latex@ +! # have_makeindex = @have_makeindex@ +! # have_pdflatex = @have_pdflatex@ +! # have_perl = @have_perl@ +! # htmldir = @htmldir@ +! # install_sh = @install_sh@ +! # psdir = @psdir@ +! # scriptdir = @scriptdir@ +! +! # # newly compiled version of yacas in ../src (not necessarily under $(srcdir)) +! # ouryacas = ../src/yacas --rootdir $(top_srcdir)/scripts/:../scripts/ +! +! # noinst_PROGRAMS = manripper removeduplicates +! +! # manripper_SOURCES = manripper.cpp +! +! # removeduplicates_SOURCES = removeduplicates.cpp +! +! # bin_SCRIPTS = ytxt2tex +! # ytxt2tex_DEPS = book2TeX.sh book2TeX.ys txt2yacasdoc.pl +! +! # BOOKS = intro.book coding.book ref.book refprog.book essays.book \ +! # Algo.book +! +! +! # BOOKSOURCES = intro.book.txt coding.book.txt ref.book.txt refprog.book.txt \ +! # essays.book.txt Algo.book.txt +! +! +! # # refprog.html is not listed because it is generated together with ref.html +! # HTMLBOOKS = intromanual.html codingmanual.html essaysmanual.html refmanual.html refprogmanual.html \ +! # Algomanual.html +! +! +! # INTROCHAPTERS = FDL.chapt cl-options.chapt config.chapt addons.chapt +! +! # INTROSOURCES = FDL.chapt.txt cl-options.chapt.txt config.chapt.txt addons.chapt.txt +! +! # ALGOCHAPTERS = algo-basic.chapt algo-numapprox.chapt \ +! # algorithms-elemfunc.chapt algorithms-specfunc.chapt \ +! # algorithms-numtheory.chapt algorithms-integration.chapt \ +! # algorithms-multivar.chapt SturmSequences.chapt FDL.chapt \ +! # algo-refs.chapt algo-contfrac.chapt algorithms-transforms.chapt +! +! +! # ALGOSOURCES = algo-basic.chapt.txt algo-numapprox.chapt.txt \ +! # algorithms-elemfunc.chapt.txt algorithms-specfunc.chapt.txt \ +! # algorithms-numtheory.chapt.txt algorithms-integration.chapt.txt \ +! # algorithms-multivar.chapt.txt SturmSequences.chapt.txt FDL.chapt.txt \ +! # algo-refs.chapt.txt algo-contfrac.chapt.txt algorithms-transforms.chapt.txt +! +! +! # REFCHAPTERS = arith.chapt calc.chapt complex.chapt solvers.chapt simplify.chapt ode.chapt linalg.chapt \ +! # univar.chapt lists.chapt functional.chapt controlflow.chapt \ +! # preds.chapt logic.chapt const.chapt vars.chapt io.chapt \ +! # numtheory.chapt strings.chapt transforms.chapt cl-options.chapt \ +! # probability-and-statistics.chapt FDL.chapt +! +! +! # REFSOURCES = arith.chapt.txt calc.chapt.txt complex.chapt.txt \ +! # solvers.chapt.txt simplify.chapt.txt ode.chapt.txt \ +! # linalg.chapt.txt univar.chapt.txt lists.chapt.txt cl-options.chapt.txt \ +! # functional.chapt.txt controlflow.chapt.txt preds.chapt.txt \ +! # logic.chapt.txt const.chapt.txt vars.chapt.txt io.chapt.txt \ +! # numtheory.chapt.txt strings.chapt.txt transforms.chapt.txt \ +! # probability-and-statistics.chapt.txt FDL.chapt.txt +! +! +! # REFPROGCHAPTERS = FDL.chapt glossary.chapt \ +! # GPL.chapt numerics.chapt +! +! # # GPL.chapt has no .txt source +! # REFPROGSOURCES = FDL.chapt.txt glossary.chapt.txt \ +! # numerics.chapt.txt +! +! +! # CODINGCHAPTERS = YacasDebugger.chapt FDL.chapt +! # CODINGSOURCES = YacasDebugger.chapt.txt FDL.chapt.txt +! +! # ESSAYCHAPTERS = ABIN-grammar.chapt \ +! # SimpleTools.chapt CVS-Howto.chapt YacasDocs.chapt \ +! # wester-1994.chapt new.chapt paper.chapt \ +! # wordproblems.chapt FDL.chapt BuildSystem.chapt +! +! +! # ESSAYSOURCES = ABIN-grammar.chapt.txt \ +! # SimpleTools.chapt.txt CVS-Howto.chapt.txt YacasDocs.chapt.txt \ +! # paper.chapt.txt wester-1994.chapt.txt new.chapt.txt \ +! # wordproblems.chapt.txt FDL.chapt.txt BuildSystem.chapt.txt +! +! +! # # Yacas test code extracted from the docs +! # TESTCODESNIPPETS = wester-1994.yts ref.book.yts refprog.book.yts +! +! # check_SCRIPTS = $(TESTCODESNIPPETS) +! +! # EXTRA_DIST = txt2example.pl book2txt.sh book2txt.ys \ +! # book2xml.sh book2xml.ys \ +! # book2ys.sh book2ys.ys ys2book.pl \ +! # ytxt2tex $(ytxt2tex_DEPS) \ +! # manualmaker indexmaker styleplain \ +! # $(REFSOURCES) $(BOOKSOURCES) $(ESSAYSOURCES) $(CODINGSOURCES) \ +! # $(INTROSOURCES) \ +! # $(REFPROGSOURCES) $(ALGOSOURCES) \ +! # dummies hints +! +! +! +! # # Stuff for automatic generation of Yacas books +! # SUFFIXES = .chapt.txt .chapt .book.tex .book.txt .book .tex .dvi .ps .pdf .ys +! +! # CLEANFILES = books.html *.tex *.dvi *.aux *.idx *.ind *.ilg *.toc *.log *.ps *.pdf *.funcs.js \ +! # coding*.html intro*.html ref*.html essays*.html Algo*.html *.o core *~ texdocs.c \ +! # $(REFCHAPTERS) $(ESSAYCHAPTERS) $(REFPROGCHAPTERS) $(CODINGCHAPTERS) \ +! # $(TESTCODESNIPPETS) $(ALGOCHAPTERS) $(BOOKS) manicon.html +! +! # subdir = manmake +! # mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +! # CONFIG_HEADER = $(top_builddir)/config.h +! # CONFIG_CLEAN_FILES = +! # noinst_PROGRAMS = manripper$(EXEEXT) removeduplicates$(EXEEXT) +! # PROGRAMS = $(noinst_PROGRAMS) +! +! # am_manripper_OBJECTS = manripper.$(OBJEXT) +! # manripper_OBJECTS = $(am_manripper_OBJECTS) +! # manripper_LDADD = $(LDADD) +! # manripper_DEPENDENCIES = +! # manripper_LDFLAGS = +! # am_removeduplicates_OBJECTS = removeduplicates.$(OBJEXT) +! # removeduplicates_OBJECTS = $(am_removeduplicates_OBJECTS) +! # removeduplicates_LDADD = $(LDADD) +! # removeduplicates_DEPENDENCIES = +! # removeduplicates_LDFLAGS = +! # SCRIPTS = $(bin_SCRIPTS) +! +! +! # DEFS = @DEFS@ +! # DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +! # CPPFLAGS = @CPPFLAGS@ +! # LDFLAGS = @LDFLAGS@ +! # LIBS = @LIBS@ +! # depcomp = $(SHELL) $(top_srcdir)/depcomp +! # am__depfiles_maybe = depfiles +! # @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/manripper.Po \ +! # @AMDEP_TRUE@ ./$(DEPDIR)/removeduplicates.Po +! # CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +! # $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +! # CXXLD = $(CXX) +! # CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ +! # -o $@ +! # CXXFLAGS = @CXXFLAGS@ +! # CFLAGS = @CFLAGS@ +! # COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +! # $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +! # CCLD = $(CC) +! # LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +! # DIST_SOURCES = $(manripper_SOURCES) $(removeduplicates_SOURCES) +! # DIST_COMMON = README Makefile.am Makefile.in +! # SOURCES = $(manripper_SOURCES) $(removeduplicates_SOURCES) +! +! # all: all-am +! +! # .SUFFIXES: +! # .SUFFIXES: .chapt.txt .chapt .book.tex .book.txt .book .tex .dvi .ps .pdf .ys .cpp .o .obj .yts +! # $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +! # cd $(top_srcdir) && \ +! # $(AUTOMAKE) --gnu manmake/Makefile +! # Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +! # cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +! +! # clean-noinstPROGRAMS: +! # -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) +! # manripper$(EXEEXT): $(manripper_OBJECTS) $(manripper_DEPENDENCIES) +! # @rm -f manripper$(EXEEXT) +! # $(CXXLINK) $(manripper_LDFLAGS) $(manripper_OBJECTS) $(manripper_LDADD) $(LIBS) +! # removeduplicates$(EXEEXT): $(removeduplicates_OBJECTS) $(removeduplicates_DEPENDENCIES) +! # @rm -f removeduplicates$(EXEEXT) +! # $(CXXLINK) $(removeduplicates_LDFLAGS) $(removeduplicates_OBJECTS) $(removeduplicates_LDADD) $(LIBS) +! # binSCRIPT_INSTALL = $(INSTALL_SCRIPT) +! # install-binSCRIPTS: $(bin_SCRIPTS) +! # @$(NORMAL_INSTALL) +! # $(mkinstalldirs) $(DESTDIR)$(bindir) +! # @list='$(bin_SCRIPTS)'; for p in $$list; do \ +! # if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ +! # if test -f $$d$$p; then \ +! # f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ +! # echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \ +! # $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \ +! # else :; fi; \ +! # done +! +! # uninstall-binSCRIPTS: +! # @$(NORMAL_UNINSTALL) +! # @list='$(bin_SCRIPTS)'; for p in $$list; do \ +! # f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ +! # echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ +! # rm -f $(DESTDIR)$(bindir)/$$f; \ +! # done +! +! # mostlyclean-compile: +! # -rm -f *.$(OBJEXT) core *.core +! +! # distclean-compile: +! # -rm -f *.tab.c +! +! # @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/manripper.Po@am__quote@ +! # @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/removeduplicates.Po@am__quote@ +! +! # distclean-depend: +! # -rm -rf ./$(DEPDIR) +! +! # .cpp.o: +! # @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +! # @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ +! # @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +! # $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +! +! # .cpp.obj: +! # @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +! # @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ +! # @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +! # $(CXXCOMPILE) -c -o $@ `cygpath -w $<` +! # CXXDEPMODE = @CXXDEPMODE@ +! # uninstall-info-am: +! +! # ETAGS = etags +! # ETAGSFLAGS = +! +! # tags: TAGS +! +! # ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) +! # list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ +! # unique=`for i in $$list; do \ +! # if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ +! # done | \ +! # $(AWK) ' { files[$$0] = 1; } \ +! # END { for (i in files) print i; }'`; \ +! # mkid -fID $$unique +! +! # TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ +! # $(TAGS_FILES) $(LISP) +! # tags=; \ +! # here=`pwd`; \ +! # list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ +! # unique=`for i in $$list; do \ +! # if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ +! # done | \ +! # $(AWK) ' { files[$$0] = 1; } \ +! # END { for (i in files) print i; }'`; \ +! # test -z "$(ETAGS_ARGS)$$tags$$unique" \ +! # || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ +! # $$tags $$unique +! +! # GTAGS: +! # here=`$(am__cd) $(top_builddir) && pwd` \ +! # && cd $(top_srcdir) \ +! # && gtags -i $(GTAGS_ARGS) $$here +! +! # distclean-tags: +! # -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH +! # DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +! +! # top_distdir = .. +! # distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) +! +! # distdir: $(DISTFILES) +! # @list='$(DISTFILES)'; for file in $$list; do \ +! # if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ +! # dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ +! # if test "$$dir" != "$$file" && test "$$dir" != "."; then \ +! # dir="/$$dir"; \ +! # $(mkinstalldirs) "$(distdir)$$dir"; \ +! # else \ +! # dir=''; \ +! # fi; \ +! # if test -d $$d/$$file; then \ +! # if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ +! # cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ +! # fi; \ +! # cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ +! # else \ +! # test -f $(distdir)/$$file \ +! # || cp -p $$d/$$file $(distdir)/$$file \ +! # || exit 1; \ +! # fi; \ +! # done +! # check-am: all-am +! # $(MAKE) $(AM_MAKEFLAGS) $(check_SCRIPTS) +! # check: check-am +! # all-am: Makefile $(PROGRAMS) $(SCRIPTS) +! +! # installdirs: +! # $(mkinstalldirs) $(DESTDIR)$(bindir) +! +! # install: install-am +! # install-exec: install-exec-am +! # install-data: install-data-am +! # uninstall: uninstall-am +! +! # install-am: all-am +! # @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +! +! # installcheck: installcheck-am +! # install-strip: +! # $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ +! # INSTALL_STRIP_FLAG=-s \ +! # `test -z '$(STRIP)' || \ +! # echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +! # mostlyclean-generic: +! +! # clean-generic: +! # -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) +! +! # distclean-generic: +! # -rm -f Makefile $(CONFIG_CLEAN_FILES) +! +! # maintainer-clean-generic: +! # @echo "This command is intended for maintainers to use" +! # @echo "it deletes files that may require special tools to rebuild." +! # clean: clean-am +! +! # clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am +! +! # distclean: distclean-am +! +! # distclean-am: clean-am distclean-compile distclean-depend \ +! # distclean-generic distclean-tags +! +! # dvi: dvi-am +! +! # dvi-am: +! +! # info: info-am +! +! # info-am: +! +! # install-data-am: install-data-local +! +! # install-exec-am: install-binSCRIPTS +! +! # install-info: install-info-am +! +! # install-man: +! +! # installcheck-am: +! +! # maintainer-clean: maintainer-clean-am +! +! # maintainer-clean-am: distclean-am maintainer-clean-generic +! +! # mostlyclean: mostlyclean-am +! +! # mostlyclean-am: mostlyclean-compile mostlyclean-generic +! +! # uninstall-am: uninstall-binSCRIPTS uninstall-info-am +! +! # .PHONY: GTAGS all all-am check check-am clean clean-generic \ +! # clean-noinstPROGRAMS distclean distclean-compile \ +! # distclean-depend distclean-generic distclean-tags distdir dvi \ +! # dvi-am info info-am install install-am install-binSCRIPTS \ +! # install-data install-data-am install-data-local install-exec \ +! # install-exec-am install-info install-info-am install-man \ +! # install-strip installcheck installcheck-am installdirs \ +! # maintainer-clean maintainer-clean-generic mostlyclean \ +! # mostlyclean-compile mostlyclean-generic tags uninstall \ +! # uninstall-am uninstall-binSCRIPTS uninstall-info-am +! +! +! # # top target +! # all-am: @BOOKS_HTML@ @PS_DOCS@ @PDF_DOCS@ hints +! +! # hints: manripper removeduplicates $(REFSOURCES) $(REFPROGSOURCES) ref.book.txt refprog.book.txt +! # rm -f hints.unsorted +! # for file in ref.book.txt $(REFSOURCES) refprog.book.txt $(REFPROGSOURCES); do \ +! # ./manripper $(srcdir)/"$$file" >> hints.unsorted ; done +! # sort -t ":" hints.unsorted > hints.sorted +! # ./removeduplicates hints.sorted hints.singlesorted +! # echo "::::" > tail.txt +! # cat hints.singlesorted tail.txt > hints +! +! # .chapt.txt.chapt: +! # perl $(srcdir)/txt2yacasdoc.pl < $< > $@ +! +! # .book.txt.book: +! # perl $(srcdir)/txt2yacasdoc.pl < $< > $@ +! +! # .book.book.tex: +! # sh $(srcdir)/book2TeX.sh -run "$(ouryacas)" $< $@ +! +! # .tex.dvi: +! # latex $< > /dev/null +! # latex $< > /dev/null +! # # The perl filter is used to help the 'makeindex' command: +! # # 1) replace \verb|...| by \verb=...= +! # # 2) escape ()|@! using a preceding quote " +! # # Note that @ and ! are not always escaped because they are sometimes part of the index entry and sometimes control chars. Heuristics are used to guess correctly. +! # @perl -pe 's/(\\verb)\|([^|]*)\|/$$1=$$2=/g;s/([()|])/"$$1/g;if(/\@/){s/!/"!/g;};s/\@([^\\])/"\@$$1/g;'<$*.idx>$*.1.idx +! # @makeindex $*.1.idx -o $*.ind || echo "***Warning: a problem with 'makeindex'" +! # latex $< > /dev/null +! +! # .dvi.ps: +! # dvips -q -o $@ $< +! # @echo "***Documentation created:" $*.ps +! +! # .dvi.pdf: +! # pdflatex $* > /dev/null +! # @echo "***Documentation created:" $*.pdf +! +! # .chapt.ys: +! # sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ +! +! # .chapt.yts: +! # sh $(srcdir)/book2ys.sh -run "$(ouryacas)" $< $@ +! +! # # generate test code from book sources +! +! # ref.book.yts: $(REFSOURCES) $(srcdir)/txt2example.pl +! # @echo "// tests for ref.book" > $@ +! # for file in $(REFSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done +! +! # refprog.book.yts: $(REFPROGSOURCES) $(srcdir)/txt2example.pl +! # @echo "// tests for refprog.book" > $@ +! # for file in $(REFPROGSOURCES); do perl $(srcdir)/txt2example.pl $(srcdir)/$$file >> $@; done +! +! # # specify books that need chapters +! # essays.book.tex: essays.book $(ESSAYCHAPTERS) +! # ref.book.tex : ref.book $(REFCHAPTERS) +! # refprog.book.tex : refprog.book $(REFPROGCHAPTERS) +! # coding.book.tex : coding.book $(CODINGCHAPTERS) +! # intro.book.tex: intro.book $(INTROCHAPTERS) +! # Algo.book.tex: Algo.book $(ALGOCHAPTERS) +! +! # # special "virtual" chapter built from corefunctions.h. This is printed by a special program "gencorefunctions", compiled together with yacas. +! +! # # special chapter copied from the GPL (need to replace "<" and ">") +! # GPL.chapt: $(top_srcdir)/COPYING +! # cat $(top_srcdir)/COPYING | sed -e 's,<,{<},g;s,>,{>},g;' | perl $(srcdir)/txt2yacasdoc.pl > $@ +! +! # ps-docs: $(PS_DOCS) +! # pdf-docs: $(PDF_DOCS) +! +! # # The top HTML docs target is now "manicon.html" that is built by GenerateIndex(). +! # # The dependence on $(HTMLBOOKS) is only to make sure that all HTML docs +! # # are built - in fact manicon.html is a constant file and has no dependencies. +! # manicon.html: books.html $(HTMLBOOKS) +! +! # # books.html only depends on top book files (*.book.txt). +! # books.html: $(BOOKS) $(srcdir)/indexmaker $(srcdir)/styleplain +! # -echo '[DefaultDirectory("$(srcdir)/"); Use("indexmaker"); GenerateIndex();];' | $(ouryacas) -fpc +! +! # intromanual.html : intro.book $(INTROCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("intro");];' | $(ouryacas) -fpc +! +! # codingmanual.html : coding.book $(CODINGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("coding");];' | $(ouryacas) -fpc +! +! # essaysmanual.html : essays.book $(ESSAYCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("essays");];' | $(ouryacas) -fpc +! +! # refmanual.html : ref.book $(REFCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("ref");];' | $(ouryacas) -fpc +! +! # refprogmanual.html : ref.book $(REFCHAPTERS) refprog.book $(REFPROGCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("refprog");];' | $(ouryacas) -fpc +! +! # Algomanual.html : Algo.book $(ALGOCHAPTERS) $(srcdir)/manualmaker $(srcdir)/styleplain +! # -@echo '[DefaultDirectory("$(srcdir)/"); Use("manualmaker"); GenerateBook("Algo");];' | $(ouryacas) -fpc +! +! # install-data-local: @INSTALL_HTML@ @INSTALL_PS@ install-scripts install-hints +! +! # install-hints: hints +! # $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/documentation +! # $(INSTALL_DATA) hints $(DESTDIR)$(pkgdatadir)/documentation/hints +! +! # install-scripts: $(ytxt2tex_DEPS) +! # $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/manmake/ +! # -for file in $(ytxt2tex_DEPS); do \ +! # $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/manmake/$$file; \ +! # done +! +! # install-html: books.html +! # $(mkinstalldirs) $(DESTDIR)$(htmldir)/ +! # $(INSTALL_DATA) $(top_srcdir)/docs/yacaslogo.gif $(DESTDIR)$(htmldir)/ +! # -for file in *.html; do \ +! # $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir)/$$file; \ +! # done +! +! # install-ps: ps-docs +! # $(mkinstalldirs) $(DESTDIR)$(psdir)/ +! # -for file in $(PS_DOCS); do \ +! # $(INSTALL_DATA) $$file $(DESTDIR)$(psdir)/$$file; \ +! # done +! +! # # gzip $(DESTDIR)$(psdir)/$$file; +! # # Tell versions [3.59,3.63) of GNU make to not export all variables. +! # # Otherwise a system limit (for SysV at least) may be exceeded. +! # .NOEXPORT: +diff -crB yacas-1.2.2old/src/Makefile.in yacas-1.2.2new/src/Makefile.in +*** yacas-1.2.2old/src/Makefile.in 2007-09-27 15:24:38.000000000 +0200 +--- yacas-1.2.2new/src/Makefile.in 2010-05-01 00:08:09.000000000 +0200 +*************** +*** 597,603 **** + $(srcdir)/platmath.cpp: fastprimes.c + + fastprimes.c: mkfastprimes +! ./mkfastprimes > fastprimes.c + + clean-compile: + test -z "libyacasplatform.a" || rm -rf libyacasplatform.a +--- 597,603 ---- + $(srcdir)/platmath.cpp: fastprimes.c + + fastprimes.c: mkfastprimes +! /tmp/mkfastprimes > fastprimes.c + + clean-compile: + test -z "libyacasplatform.a" || rm -rf libyacasplatform.a