office-gobmx/solenv/inc/tg_yxx.mk

32 lines
1.1 KiB
Makefile
Raw Normal View History

2000-09-20 08:43:26 -05:00
.IF "$(YACCTARGET)"!=""
2002-04-26 04:27:27 -05:00
$(MISC)$/%.cxx : %.y
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)" != "4nt"
+tr -d "\015" < $< > $(MISC)$/stripped_$<
.ELSE
+cat $< > $(MISC)$/stripped_$<
.ENDIF
$(BISON) $(YACCFLAGS) $(YACCTARGET) $(MISC)$/stripped_$<
# removing -f switch - avoid getting nothing when copying a file to itself
@+-$(COPY:s/-f//) $@.h $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
@+-$(COPY:s/-f//) $(@:d)$/$(@:b).hxx $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
+$(TYPE) $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
2002-04-30 09:52:06 -05:00
$(INCCOM)$/yy%.cxx : %.y
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)" != "4nt"
+tr -d "\015" < $< > $(MISC)$/stripped_$<
.ELSE
+cat $< > $(MISC)$/stripped_$<
.ENDIF
$(BISON) $(YACCFLAGS) $(YACCTARGET) $(MISC)$/stripped_$<
2002-04-30 09:52:06 -05:00
# removing -f switch - avoid getting nothing when copying a file to itself
@+-$(COPY:s/-f//) $@.h $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
@+-$(COPY:s/-f//) $(@:d)$/$(@:b).hxx $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
+$(TYPE) $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
2000-09-20 08:43:26 -05:00
.ENDIF