CVS User Account cvsuser
Sat Aug 28 21:24:14 PDT 2004
Log Message:
-----------
Don't depend on system default build rules to yacc around

Tags:
----
REL_1_0_STABLE

Modified Files:
--------------
    slony1-engine/src/slonik:
        Makefile (r1.7 -> r1.7.2.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slonik/Makefile,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -Lsrc/slonik/Makefile -Lsrc/slonik/Makefile -u -w -r1.7 -r1.7.2.1
--- src/slonik/Makefile
+++ src/slonik/Makefile
@@ -39,8 +39,22 @@
 slonik.o:			slonik.c slonik.h
 dbutil.o:			dbutil.c slonik.h
 parser.o:			parser.c scan.c
+
 parser.c:			parser.y slonik.h
+ifdef YACC
+	$(YACC) -d $(YFLAGS) $<
+	mv -f y.tab.c parser.c
+else
+	@$(missing) yacc $< $@
+endif
+
 scan.c:				scan.l slonik.h
+ifdef FLEX
+	$(FLEX) $(FLEXFLAGS) -o'$@' $<
+else
+	@$(missing) flex $< $@
+endif
+
 
 clean distclean:
 	rm -f $(ALL) $(OBJS)


More information about the Slony1-commit mailing list