source: CMT/v1r16p20040901/src/yacc.make @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 678 bytes
Line 
1#-----------------------------------------------------------
2# Copyright Christian Arnault LAL-Orsay CNRS
3# arnault@lal.in2p3.fr
4# See the complete license in cmt_license.txt "http://www.cecill.info".
5#-----------------------------------------------------------
6
7package=
8yaccflags=-d
9yacc=yacc $(yaccflags)
10
11$(src)$(package)Parse.c : $(src)$(package)Parse.y
12        @cd $(src); $(yacc) $(package)Parse.y; \
13        sed 's/yy/$(package)YY/g' y.tab.c > y.tab.c.tmp; \
14        ${CMTROOT}/mgr/cmt check_files y.tab.c.tmp $(package)Parse.c; \
15        sed 's/yy/$(package)YY/g' y.tab.h > y.tab.h.tmp; \
16        ${CMTROOT}/mgr/cmt check_files y.tab.h.tmp $(package)Parse.h; \
17        /bin/rm -f y.tab.[ch]
18
Note: See TracBrowser for help on using the repository browser.