stk/Demos/Makefile

54 lines
1.8 KiB
Makefile
Raw Normal View History

1996-09-27 06:29:02 -04:00
#
# Makefile for the Demos directory
#
1999-09-05 07:16:41 -04:00
# Copyright <20> 1993-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
#
# Permission to use, copy, modify, distribute,and license this
# software and its documentation for any purpose is hereby granted,
# provided that existing copyright notices are retained in all
# copies and that this notice is included verbatim in any
# distributions. No written agreement, license, or royalty fee is
# required for any of the authorized uses.
# This software is provided ``AS IS'' without express or implied
# warranty.
#
1999-09-27 07:20:21 -04:00
# Last file update: 13-Sep-1999 18:11 (eg)
1999-09-05 07:16:41 -04:00
#
1996-09-27 06:29:02 -04:00
include ../config.make
1999-09-05 07:16:41 -04:00
DEMODIR=$(root)$(libdir)/Demos
1996-09-27 06:29:02 -04:00
what:
@echo "Type make install to install demos"
install:
-if [ ! -d $(DEMODIR) ] ; then mkdir -p $(DEMODIR); fi
1998-04-30 07:04:33 -04:00
chmod 0755 $(DEMODIR)
for i in *.stk *.stklos Widget/*.stklos *.html; \
1996-09-27 06:29:02 -04:00
do \
j=`basename $$i`; \
sed -e 's=/usr/local/lib/stk=$(libdir)=' \
-e 's=/usr/local/bin=$(bindir)=' $$i > $(DEMODIR)/$$j;\
done
1998-04-30 07:04:33 -04:00
for i in *.stk *.stklos *.html; \
1996-09-27 06:29:02 -04:00
do \
chmod 0755 $(DEMODIR)/`basename $$i`; \
done
1998-04-30 07:04:33 -04:00
mkdir $(DEMODIR)/Html-Demos; chmod 0755 $(DEMODIR)/Html-Demos
cp Html-Demos/*.html $(DEMODIR)/Html-Demos
chmod 0644 $(DEMODIR)/Html-Demos/*.html
mkdir $(DEMODIR)/Html-Demos/Images; chmod 0755 $(DEMODIR)/Html-Demos/Images
1999-09-05 07:16:41 -04:00
cp Html-Demos/Images/*.gif $(DEMODIR)/Html-Demos/Images
1998-04-30 07:04:33 -04:00
chmod 0644 $(DEMODIR)/Html-Demos/Images/*
(cd $(DEMODIR)/Html-Demos; ln -s ../amib.stklos ../stklos-widgets .)
1999-09-27 07:20:21 -04:00
-if [ ! -d $(DEMODIR)lib ] ; then mkdir -p $(DEMODIR)/lib; fi
$(CP) ../Contrib/STk-wtour/lib/*.xbm $(DEMODIR)/lib
chmod 0644 $(DEMODIR)/lib/*
-if [ ! -d $(DEMODIR)/lessons ] ; then mkdir -p $(DEMODIR)/lessons; fi
$(CP) ../Contrib/STk-wtour/lessons/*.stk $(DEMODIR)/lessons
$(CP) ../Contrib/STk-wtour/lessons/index $(DEMODIR)/lessons
chmod 0644 $(DEMODIR)/lessons/*
1996-09-27 06:29:02 -04:00
install.libs: