cvsuser     05/04/04 13:03:46

  Modified:    config/gen/makefiles root.in
  Log:
  When generating parser or lexer, remove target .c file first.
  This is required when users use "cvs -r" (ahem), which makes all the
  CVS-controlled files read-only.
  
  Revision  Changes    Path
  1.289     +3 -1      parrot/config/gen/makefiles/root.in
  
  Index: root.in
  ===================================================================
  RCS file: /cvs/public/parrot/config/gen/makefiles/root.in,v
  retrieving revision 1.288
  retrieving revision 1.289
  diff -u -r1.288 -r1.289
  --- root.in   31 Mar 2005 11:23:04 -0000      1.288
  +++ root.in   4 Apr 2005 20:03:45 -0000       1.289
  @@ -971,10 +971,12 @@
   # target files, instead of just the .flag files.
   
   $(IMCC_DIR)/imcc.y.flag $(IMCC_DIR)/imcparser.c $(IMCC_DIR)/imcparser.h : 
$(IMCC_DIR)/imcc.y
  +     $(RM_F) $(IMCC_DIR)/imcparser.c
        $(YACC) $(IMCC_DIR)/imcc.y -d -o $(IMCC_DIR)/imcparser.c
        $(TOUCH) $(IMCC_DIR)/imcc.y.flag $(IMCC_DIR)/imcparser.c 
$(IMCC_DIR)/imcparser.h
   
   $(IMCC_DIR)/imcc.l.flag $(IMCC_DIR)/imclexer.c : $(IMCC_DIR)/imcc.l
  +     $(RM_F) $(IMCC_DIR)/imclexer.c
        $(LEX) -o$(IMCC_DIR)/imclexer.c $(IMCC_DIR)/imcc.l
        $(TOUCH) $(IMCC_DIR)/imcc.l.flag $(IMCC_DIR)/imclexer.c
   
  
  
  

Reply via email to