summaryrefslogtreecommitdiff
path: root/solenv/inc/tg_yxx.mk
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2002-04-30 14:52:06 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2002-04-30 14:52:06 +0000
commitf58dc586670253878ced14d7982e6a43ac910230 (patch)
tree52243b065a691459f6aafe39c35dfc4eeb87e435 /solenv/inc/tg_yxx.mk
parentd7d374fc84e8102fd1f1f57f7726610efe7d2951 (diff)
one more rule - generate to inc
Diffstat (limited to 'solenv/inc/tg_yxx.mk')
-rw-r--r--solenv/inc/tg_yxx.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/solenv/inc/tg_yxx.mk b/solenv/inc/tg_yxx.mk
index 75bf0f9fb0a5..11118a24a6de 100644
--- a/solenv/inc/tg_yxx.mk
+++ b/solenv/inc/tg_yxx.mk
@@ -8,5 +8,14 @@ $(MISC)$/%.cxx : %.y
@+-$(COPY:s/-f//) $@.h $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
@+-$(COPY:s/-f//) $(@:d)$/$(@:b).hxx $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
+$(TYPE) $(INCCOM)$/$(@:b).hxx >& $(NULLDEV)
+
+$(INCCOM)$/yy%.cxx : %.y
+ @echo ------------------------------
+ @echo Making: $@
+ $(BISON) $(YACCFLAGS) $(YACCTARGET) $(YACCFILES)
+# 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)
.ENDIF