summaryrefslogtreecommitdiffstats
path: root/ds9/make.include
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/make.include')
-rw-r--r--ds9/make.include17
1 files changed, 10 insertions, 7 deletions
diff --git a/ds9/make.include b/ds9/make.include
index 7b3684a..4264fdc 100644
--- a/ds9/make.include
+++ b/ds9/make.include
@@ -1,14 +1,16 @@
#--------------------------parser
-%.tcl: %.fcl
- tclsh $(prefix)/fickle/fickle.tcl -P zoom $<
+libparsers : zoomparser
+zoomparser : ../library/zoomparser.tcl ../library/zoomlex.tcl
-%.tcl: %.tac
+../library/zoomparser.tcl : ../library/zoomparser.tac
tclsh $(prefix)/taccle/taccle.tcl -p zoom -d -v -w $<
+../library/zoomlex.tcl : ../library/zoomlex.fcl
+ tclsh $(prefix)/fickle/fickle.tcl -P zoom $<
#--------------------------framework
-$(LIBDIR)/library : $(prefix)/ds9/library/parser.tcl $(prefix)/ds9/library/parser.tab.tcl $(prefix)/ds9/library/lex.tcl $(prefix)/ds9/library/*.tcl
+$(LIBDIR)/library : $(prefix)/ds9/library/*.tcl
mkdir -p "$@"
cp -p $? "$@"
# must do it this way for win
@@ -75,10 +77,11 @@ $(LIBDIR)/math : $(prefix)/tcllib/modules/math
.PHONY : distclean
-distclean: clean parserclean
+distclean: clean parsersclean
-rm -f Makefile config.cache config.log config.status
-rm -rf autom4te.cache
-parserclean:
- -rm -f ../library/parser.tcl ../library/parser.output ../library/parser.tab.tcl ../library/lex.tcl
+parsersclean:
+ -rm -f ../library/*.output ../library/*.tab.tcl
+ -rm -f ../library/zoomparser.tcl ../library/zoomlex.tcl