| 1 |
|
| 2 |
# ------------------------------------------------------------------------ |
| 3 |
# Makefile for library files and directories of BLT library |
| 4 |
# ------------------------------------------------------------------------ |
| 5 |
|
| 6 |
include ../win/makedefs |
| 7 |
|
| 8 |
version = $(BLT_MAJOR_VERSION).$(BLT_MINOR_VERSION) |
| 9 |
pkgdir = $(libdir)/tcl$(v1)/blt$(version) |
| 10 |
srcdir = . |
| 11 |
|
| 12 |
cursors = treeview.cur |
| 13 |
|
| 14 |
miscFiles = bltCanvEps.pro \ |
| 15 |
bltGraph.pro \ |
| 16 |
dnd.tcl \ |
| 17 |
dragdrop.tcl \ |
| 18 |
graph.tcl \ |
| 19 |
hierbox.tcl \ |
| 20 |
tabnotebook.tcl \ |
| 21 |
tabset.tcl \ |
| 22 |
treeview.tcl \ |
| 23 |
init.tcl \ |
| 24 |
tclIndex \ |
| 25 |
$(cursors) |
| 26 |
|
| 27 |
#ddFiles = dd-color.tcl \ |
| 28 |
# dd-file.tcl \ |
| 29 |
# dd-number.tcl \ |
| 30 |
# dd-text.tcl \ |
| 31 |
# tclIndex |
| 32 |
|
| 33 |
instdirs = $(prefix) $(exec_prefix) $(libdir) \ |
| 34 |
$(scriptdir) $(scriptdir)/dd_protocols $(libdir)/tcl$(v1) \ |
| 35 |
$(pkgdir) |
| 36 |
|
| 37 |
all: build-pkgindex |
| 38 |
|
| 39 |
install: install-dirs install-ddfiles install-files install-pkgindex |
| 40 |
|
| 41 |
install-dirs: |
| 42 |
@for i in $(instdirs) ; do \ |
| 43 |
if test -d "$$i" ; then : ; else mkdir "$$i" ; fi ; \ |
| 44 |
done |
| 45 |
|
| 46 |
install-ddfiles: install-dirs |
| 47 |
#for i in $(ddFiles) ; do \ |
| 48 |
# $(INSTALL_DATA) $(srcdir)/dd_protocols/$$i $(scriptdir)/dd_protocols ; \ |
| 49 |
#done |
| 50 |
|
| 51 |
install-files: install-dirs |
| 52 |
for i in $(miscFiles) ; do \ |
| 53 |
$(INSTALL_DATA) $(srcdir)/$$i $(scriptdir) ; \ |
| 54 |
done |
| 55 |
|
| 56 |
pkgIndex.tcl: build-pkgindex |
| 57 |
|
| 58 |
build-pkgindex: |
| 59 |
rm -f pkgIndex.tcl |
| 60 |
sed -e 's/%VERSION%/$(version)/' $(srcdir)/pkgIndex.tcl.in | \ |
| 61 |
sed -e 's/%LIB_PREFIX%//' | \ |
| 62 |
sed -e 's;%LIB_DIR%;$(libdir);' > pkgIndex.tcl |
| 63 |
|
| 64 |
install-pkgindex: pkgIndex.tcl |
| 65 |
$(INSTALL_DATA) pkgIndex.tcl $(scriptdir) |
| 66 |
$(INSTALL_DATA) pkgIndex.tcl $(pkgdir) |
| 67 |
|
| 68 |
clean: |
| 69 |
$(RM) pkgIndex.tcl |
| 70 |
$(RM) $(srcdir)/*.bak $(srcdir)/*\~ $(srcdir)/"#"* |
| 71 |
|
| 72 |
distclean: clean |
| 73 |
$(RM) Makefile |