1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # Copyright © 2016 Federico Beffa
- #
- # This program 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.
- #
- # This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
- PACKAGE = chez-mit
- VERSION = 0.1
- CHEZ = chez-scheme
- INSTALL = install -D
- PREFIX = /usr/local
- EXEC_PREFIX = ${PREFIX}
- BINDIR = ${EXEC_PREFIX}/bin
- LIBDIR = ${EXEC_PREFIX}/lib
- INCLUDEDIR = ${PREFIX}/include
- DATAROOTDIR = ${PREFIX}/share
- DATADIR = ${DATAROOTDIR}
- MANDIR = ${DATAROOTDIR}/man
- INFODIR = ${DATAROOTDIR}/info
- DOCDIR = ${DATAROOTDIR}/doc/${PACKAGE}-${VERSION}
- chezversion ::= $(shell echo '(call-with-values scheme-version-number (lambda (a b c) (format \#t "~d.~d" a b)))' | ${CHEZ} -q)
- schemedir = ${LIBDIR}/csv${chezversion}-site
- build:
- $(CHEZ) --program compile-all.ss
- clean:
- find . -name "*.so" -exec rm {} \;
- find . -name "*~" -exec rm {} \;
- install:
- find . -type f -regex ".*.so" -exec sh -c '${INSTALL} -t ${schemedir}/$$(dirname $$1) $$1' _ {} \;
- ${INSTALL} -t ${DOCDIR} README
- install-src:
- find . -type f -regex ".*.sls" -exec sh -c '${INSTALL} -t ${schemedir}/$$(dirname $$1) $$1' _ {} \;
- test:
- $(CHEZ) --script ./mit/tests/test-arity.ss
- $(CHEZ) --script ./mit/tests/test-apply-hook.ss
- check-schemedir:
- echo ${schemedir}
|