summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-04 17:10:36 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-04 18:41:39 (GMT)
commita60eb4b18345626a84e23784d77ca231812e1dff (patch) (side-by-side diff)
tree80192afeadd44b073958c2762491cc7dfea778a1 /src
parentb65bfa7564f564f85d3c595c6c1030af2acf5056 (diff)
downloadgrecs-a60eb4b18345626a84e23784d77ca231812e1dff.tar.gz
grecs-a60eb4b18345626a84e23784d77ca231812e1dff.tar.bz2
Improve docs. Add an option to create installable distribution.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/.gitignore2
-rw-r--r--src/Make-inst.am19
-rw-r--r--src/Make-noinst.am18
-rw-r--r--src/Make.am42
4 files changed, 81 insertions, 0 deletions
diff --git a/src/.gitignore b/src/.gitignore
index 7c38320..bf5d140 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -2,3 +2,5 @@ grecs-gram.c
grecs-gram.h
grecs-gram.output
grecs-lex.c
+Make-noinst.in
+Make-inst.in
diff --git a/src/Make-inst.am b/src/Make-inst.am
new file mode 100644
index 0000000..3b394b0
--- a/dev/null
+++ b/src/Make-inst.am
@@ -0,0 +1,19 @@
+# This file is part of grecs - Gray's Extensible Configuration System
+# Copyright (C) 2007, 2009-2011 Sergey Poznyakoff
+#
+# Grecs is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Grecs 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+
+include Make.am
+lib_LTLIBRARIES=libgrecs.la
+libgrecs_la_SOURCES = $(GRECS_SRC)
diff --git a/src/Make-noinst.am b/src/Make-noinst.am
new file mode 100644
index 0000000..bf4f7ce
--- a/dev/null
+++ b/src/Make-noinst.am
@@ -0,0 +1,18 @@
+# This file is part of grecs - Gray's Extensible Configuration System
+# Copyright (C) 2007, 2009-2011 Sergey Poznyakoff
+#
+# Grecs is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Grecs 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+include Make.am
+noinst_LIBRARIES=libgrecs.a
+libgrecs_a_SOURCES = $(GRECS_SRC)
diff --git a/src/Make.am b/src/Make.am
new file mode 100644
index 0000000..e655767
--- a/dev/null
+++ b/src/Make.am
@@ -0,0 +1,42 @@
+# This file is part of grecs - Gray's Extensible Configuration System
+# Copyright (C) 2007, 2009-2011 Sergey Poznyakoff
+#
+# Grecs is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Grecs 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+
+GRECS_SRC = \
+ diag.c\
+ format.c\
+ grecs-gram.y\
+ grecs-lex.l\
+ list.c\
+ lookup.c\
+ mem.c\
+ preproc.c\
+ symtab.c\
+ text.c\
+ tree.c\
+ grecs.h\
+ wordsplit.c\
+ wordsplit.h
+
+EXTRA_DIST=grecs-gram.h $(PP_SETUP_FILE) Make.am Make-inst.am Make-noinst.am
+
+INCLUDES = -I$(srcdir) @GRECS_INCLUDES@
+AM_YFLAGS = -dtv
+AM_LFLAGS = -d
+# Use a modified ylwrap implementation that understands the --prefix option.
+YLWRAP = $(top_srcdir)/$(grex_topdir)grecs/build-aux/ylwrap --prefix yy_grecs
+
+incdir=$(pkgdatadir)/$(VERSION)/include
+inc_DATA = $(PP_SETUP_FILE)

Return to:

Send suggestions and report system problems to the System administrator.