| 1 |
# ------------------------------------------------------------------------ |
| 2 |
# Makefile for demos |
| 3 |
# ------------------------------------------------------------------------ |
| 4 |
|
| 5 |
include ../win/makedefs |
| 6 |
|
| 7 |
destdir = $(scriptdir)/demos |
| 8 |
srcdir = . |
| 9 |
|
| 10 |
SHELL = bash |
| 11 |
RM = rm -rf |
| 12 |
INSTALL = install -m 0755 |
| 13 |
INSTALL_DATA = install -m 0644 |
| 14 |
|
| 15 |
instdirs = $(prefix) $(exec_prefix) $(libdir) $(scriptdir) \ |
| 16 |
$(destdir) \ |
| 17 |
$(destdir)/bitmaps \ |
| 18 |
$(destdir)/bitmaps/hand \ |
| 19 |
$(destdir)/bitmaps/fish \ |
| 20 |
$(destdir)/images \ |
| 21 |
$(destdir)/scripts |
| 22 |
|
| 23 |
demos = barchart1.tcl barchart2.tcl barchart3.tcl barchart4.tcl \ |
| 24 |
barchart5.tcl \ |
| 25 |
bgexec1.tcl bgexec2.tcl bgexec3.tcl bgexec4.tcl \ |
| 26 |
bitmap.tcl \ |
| 27 |
busy1.tcl \ |
| 28 |
dragdrop1.tcl dragdrop2.tcl \ |
| 29 |
eps.tcl \ |
| 30 |
graph1.tcl graph2.tcl graph3.tcl graph4.tcl graph5.tcl \ |
| 31 |
graph6.tcl graph7.tcl \ |
| 32 |
hierbox1.tcl hierbox2.tcl hierbox3.tcl hierbox4.tcl \ |
| 33 |
hiertable1.tcl hiertable2.tcl hiertable3.tcl \ |
| 34 |
htext1.tcl htext.txt \ |
| 35 |
spline.tcl stripchart1.tcl \ |
| 36 |
tabset1.tcl tabset2.tcl tabset3.tcl tabset4.tcl \ |
| 37 |
tabnotebook1.tcl tabnotebook2.tcl tabnotebook3.tcl \ |
| 38 |
treeview1.tcl \ |
| 39 |
winop1.tcl winop2.tcl |
| 40 |
|
| 41 |
all: |
| 42 |
|
| 43 |
install: inst-dirs inst-bitmaps inst-images inst-scripts |
| 44 |
|
| 45 |
inst-scripts: |
| 46 |
for i in $(srcdir)/scripts/*.tcl ; do \ |
| 47 |
$(INSTALL) $$i $(destdir)/scripts ; \ |
| 48 |
done |
| 49 |
for i in $(demos) ; do \ |
| 50 |
$(INSTALL) $(srcdir)/$$i $(destdir)/$$i ; \ |
| 51 |
done |
| 52 |
|
| 53 |
inst-bitmaps: |
| 54 |
for i in $(srcdir)/bitmaps/*.xbm ; do \ |
| 55 |
$(INSTALL_DATA) $$i $(destdir)/bitmaps ; \ |
| 56 |
done |
| 57 |
for i in $(srcdir)/bitmaps/hand/*.xbm ; do \ |
| 58 |
$(INSTALL_DATA) $$i $(destdir)/bitmaps/hand ; \ |
| 59 |
done |
| 60 |
for i in $(srcdir)/bitmaps/fish/*.xbm ; do \ |
| 61 |
$(INSTALL_DATA) $$i $(destdir)/bitmaps/fish ; \ |
| 62 |
done |
| 63 |
|
| 64 |
inst-images: |
| 65 |
for i in $(srcdir)/images/*.gif $(srcdir)/images/*.ps ; do \ |
| 66 |
$(INSTALL_DATA) $$i $(destdir)/images ; \ |
| 67 |
done |
| 68 |
|
| 69 |
inst-dirs: |
| 70 |
@for i in $(instdirs) ; do \ |
| 71 |
if test -d "$$i" ; then : ; else mkdir "$$i" ; fi ; \ |
| 72 |
done |
| 73 |
|
| 74 |
clean: |
| 75 |
$(RM) $(srcdir)/*.bak $(srcdir)/*\~ $(srcdir)/"#"* |
| 76 |
|
| 77 |
distclean: clean |
| 78 |
$(RM) *.ps Makefile |