Move the logic out for building the parser.
authorBrian Aker <brian@tangent.org>
Sun, 27 Mar 2011 21:50:57 +0000 (14:50 -0700)
committerBrian Aker <brian@tangent.org>
Sun, 27 Mar 2011 21:50:57 +0000 (14:50 -0700)
libmemcached/options/include.am
libmemcached/options/parser.am [new file with mode: 0644]

index 562a32788dfebe49f19e40506a562543b8f1d37c..040c1c1ed6343a4568f0a66bf0bf2cd5d02f6cbe 100644 (file)
@@ -9,10 +9,6 @@ DISTCLEANFILES+= \
                 libmemcached/options/scanner.cc \
                 libmemcached/options/scanner.h
 
-EXTRA_DIST+= \
-            libmemcached/options/scanner.l \
-            libmemcached/options/parser.yy
-
 noinst_HEADERS+= \
                 libmemcached/options/build.h \
                 libmemcached/options/context.h \
@@ -27,13 +23,4 @@ libmemcached_libmemcached_la_SOURCES+= \
                                       libmemcached/options/parser.cc \
                                       libmemcached/options/scanner.cc
 
-libmemcached/options/parser.h: libmemcached/options/parser.cc
-
-libmemcached/options/parser.cc: libmemcached/options/parser.yy libmemcached/options/scanner.l libmemcached/options/scanner.h
-       $(AM_V_YACC)$(am__skipyacc) $(YACC) $(YLFLAGS) $(AM_YFLAGS) -o $@ $<
-
-libmemcached/options/scanner.h: libmemcached/options/scanner.cc
-
-libmemcached/options/scanner.cc: libmemcached/options/scanner.l libmemcached/options/parser.yy
-       $(AM_V_GEN)$(LEX) $<
-
+include libmemcached/options/parser.am
diff --git a/libmemcached/options/parser.am b/libmemcached/options/parser.am
new file mode 100644 (file)
index 0000000..7bfd21c
--- /dev/null
@@ -0,0 +1,29 @@
+#  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
+#
+#  Libmemcached Scanner and Parser
+#
+#  Copyright (C) 2011 DataDifferental, http://datadifferential.com
+#  
+#  This program is free software: you can redistribute it and/or modify
+#  it under the terms of the GNU Affero General Public License as
+#  published by the Free Software Foundation, either version 3 of the
+#  License, or (at your option) any later version.
+#  
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU Affero General Public License for more details.
+#  
+#  You should have received a copy of the GNU Affero General Public License
+#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+
+libmemcached/options/parser.h: libmemcached/options/parser.cc
+
+libmemcached/options/parser.cc: libmemcached/options/parser.yy libmemcached/options/scanner.l libmemcached/options/scanner.h
+       $(AM_V_YACC)$(am__skipyacc) $(YACC) $(YLFLAGS) $(AM_YFLAGS) -o $@ $<
+
+libmemcached/options/scanner.h: libmemcached/options/scanner.cc
+
+libmemcached/options/scanner.cc: libmemcached/options/scanner.l libmemcached/options/parser.yy
+       $(AM_V_GEN)$(LEX) $<