summaryrefslogtreecommitdiff
path: root/misc/openoffice/patches/patch-di
blob: 7dc00a43300b1e70c74658d2dc7aa7c3be3911ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-di,v 1.3 2002/03/29 21:00:11 mrauch Exp $

--- ../solenv/inc/tg_yxx.mk.orig	Wed Sep 20 14:43:18 2000
+++ ../solenv/inc/tg_yxx.mk
@@ -3,12 +3,10 @@
 $(YACCTARGET): $(YACCFILES)
 	@echo ------------------------------
 	@echo Making: $@
-#.IF "$(GUI)"!="UNX"
-	$(BISON) $(YACCFLAGS) $(YACCOUT)$/$(YACCTARGET) $(YACCFILES)
-#.ELSE
-#	$(BISON) $(YACCFLAGS) $(YACCFILES)
-#	mv y.tab.c $(INCCOM)/rscyacc.yxx
-#	mv y.tab.h $(INCCOM)/yytab.h
-#.ENDIF
+	$(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