#
# **************************************************************
# *                  SIMUSOL PROYECT                           *
# *                                                            *
# *         Table extension for:                               *
# *         C++ Mathematical Expression Toolkit Library        *
# *         which is located in:                               *
# * URL: http://www.partow.net/programming/exprtk/index.html   *
# *                                                            *
# *   The extension was developed by                           *
# *   Diego.Saravia@gmail.com, 2016                            *
# *   and could be used in the same terms of the toolkit       *
# *   or every free license with copyleft needed.              *
# *   http://www.simusol.org                                   *
# **************************************************************

# * Uses Check: a unit test framework for C
# * Copyright (C) 2001, 2002 Arien Malec
# https://libcheck.github.io/check/

# This file is part of Table.
#
#    Table is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Table is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Table.  If not, see <http://www.gnu.org/licenses/>.




VERSION=0.1
NAME=simusol_table

SUBDIRS= src check examples exprtk   #src esta incluido en los otros # no parece que no # src primero, di no encuentra simusol_table.h
SUBDIRST= $(SUBDIRS) finddir 
.PHONY:  subdirs  $(SUBDIRS)


all:   makefile.inc unzip cp $(SUBDIRS)  gnuplot-x11 gnuplot5


../makefile.inc:         # para el caso que se desempaquete fuera del arbol
	if [ ! -e ../makefile.inc ];  then cp makefile.inc ../makefile.inc; fi;


makefile.inc: ../makefile.inc
	cp ../makefile.inc makefile.inc

cp:   # bajar web
	if [ ! -e COPYING ];  then cp  ../gpl-3.0.txt   COPYING; fi

include makefile.inc

subdirs: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

clean:
	rm -f *~
	for dir in $(SUBDIRST); do \
	  $(MAKE) -C $$dir  clean; \
	  done

install:
	for dir in src; do \
	  $(MAKE) -C $$dir  install; \
	  done

