1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
# Makefile.in --
#
# If ths is "Makefile.in" then it is a template for a Makefile; to generate
# the actual Makefile, run "./configure", which is a configuration script
# generated by the "autoconf" program (constructs like "@foo@" will get
# replaced in the actual Makefile.
#
# Copyright (C) 2019 Alexander Schoepe, Bochum, DE
#
#========================================================================
# Nothing of the variables below this line need to be changed.
#========================================================================
SHELL = /bin/sh
srcdir = .
top_srcdir = .
prefix = /opt/tcl/9.0
exec_prefix = /opt/tcl/9.0
datarootdir = ${prefix}/share
libdir = ${exec_prefix}/lib
mandir = ${datarootdir}/man
bindir = ${exec_prefix}/bin
DESTDIR =
pkglibdir = $(libdir)/ooxml1.10
top_builddir = /Users/alex/src/ooxml
PACKAGE_NAME = ooxml
PACKAGE_VERSION = 1.10
CYGPATH = echo
#========================================================================
# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
# package without installing. The other environment variables allow us
# to test against an uninstalled Tcl. Add special env vars that you
# require for testing here (like TCLX_LIBRARY).
#========================================================================
TCL_BIN_DIR = /Library/Frameworks/Tcl.framework
TCL_SRC_DIR = /Users/alex/src/core/tests/tcl9.0.1
EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR)
TCLLIBPATH = $(top_builddir)
TCLSH_ENV = TCL_LIBRARY=`echo $(TCL_SRC_DIR)/library`
PKG_ENV = LD_LIBRARY_PATH="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
PATH="$(EXTRA_PATH):$(PATH)" \
TCLLIBPATH="$(TCLLIBPATH)"
TCLSH_PROG = /opt/tcl/9.0/bin/tclsh9.0
TCLSH = $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)
PKG_TCL_SOURCES = ooxml.tcl manifest.txt
CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl manifest.txt
CLEANFILES =
#========================================================================
# Start of user-definable TARGETS section
#========================================================================
manifest.txt: manifest manifest.uuid tools/mkversion.tcl
$(TCLSH) tools/mkversion.tcl > $@
doc/ooxml.html: doc/ooxml.md
pandoc --standalone -f markdown -t html doc/ooxml.md \
--css main.css -o doc/ooxml.html
doc/ooxml.n: doc/ooxml.md
pandoc --standalone -f markdown -t man doc/ooxml.md -o doc/ooxml.n
doc: doc/ooxml.html doc/ooxml.n
all: manifest.txt doc/ooxml.html doc/ooxml.n
install: all
$(TCLSH) `echo $(srcdir)/helper.tcl` cp $(PKG_TCL_SOURCES) pkgIndex.tcl $(pkglibdir)
test:
$(TCLSH) `echo $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
-load "package ifneeded ${PACKAGE_NAME} ${PACKAGE_VERSION} [list source [file join `echo $(srcdir)` $(PACKAGE_NAME).tcl]]"
archive:
sh tools/archive.sh ooxml 1.10 $(PKG_TCL_SOURCES)
clean:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-rm -rf doc/ooxml.html doc/ooxml.n
distclean: clean
-rm -f $(CONFIG_CLEAN_FILES)
-rm -rf autom4te.cache
-rm -f config.cache config.log config.status
.PHONY: install test clean distclean
|