summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Buerger <b.buerger@pengutronix.de>2006-01-12 15:43:57 +0000
committerBjoern Buerger <b.buerger@pengutronix.de>2006-01-12 15:43:57 +0000
commitdf3e493cae99002c76a3e5b63188c06a00a5e72c (patch)
tree51954bfe7746e0bb009a915ae06534573e224285
parenta11243e8f02417f07beabde2dbb11a3775930544 (diff)
downloadptxdist-df3e493cae99002c76a3e5b63188c06a00a5e72c.tar.gz
ptxdist-df3e493cae99002c76a3e5b63188c06a00a5e72c.tar.xz
usage of autogenerated dependencies and documentation update
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.9-trunk@3849 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r--rules/Kconfig1
-rw-r--r--rules/flex.in22
-rw-r--r--rules/flex.make23
3 files changed, 27 insertions, 19 deletions
diff --git a/rules/Kconfig b/rules/Kconfig
index fac2ebbcf..512dd43b8 100644
--- a/rules/Kconfig
+++ b/rules/Kconfig
@@ -206,5 +206,6 @@ source "rules/cfgsh.in"
source "rules/cyclictest.in"
source "rules/dialog.in"
source "rules/e2tools.in"
+source "rules/flex.make"
endmenu
diff --git a/rules/flex.in b/rules/flex.in
index 9a084a0e3..ef16c2b8f 100644
--- a/rules/flex.in
+++ b/rules/flex.in
@@ -1 +1,21 @@
-# FIXME: There should be a *.in for this package
+config FLEX
+ bool
+ default N
+ depends on BROKEN
+ prompt "FLEX"
+ help
+ FLEX is a tool for generating scanners: programs which
+ recognized lexical patterns in text. flex reads the given
+ input files for a description of a scanner to generate.
+ The description is in the form of pairs of regular expressions
+ and C code, called rules. flex generates as output a C source
+ file, lex.yy.c, which defines a routine yylex().
+
+ This file is compiled and linked with the -lfl library to
+ produce an executable. When the executable is run, it
+ analyzes its input for occurrences of the regular
+ expressions. Whenever it finds one, it executes the
+ corresponding C code.
+
+comment "FLEX is broken, please send a patch"
+ depends on !BROKEN
diff --git a/rules/flex.make b/rules/flex.make
index 266913358..39d9d451e 100644
--- a/rules/flex.make
+++ b/rules/flex.make
@@ -49,9 +49,7 @@ $(FLEX_SOURCE):
flex_extract: $(STATEDIR)/flex.extract
-flex_extract_deps = $(STATEDIR)/flex.get
-
-$(STATEDIR)/flex.extract: $(flex_extract_deps)
+$(STATEDIR)/flex.extract: $(flex_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(FLEX_DIR))
@$(call extract, $(FLEX_SOURCE))
@@ -64,13 +62,6 @@ $(STATEDIR)/flex.extract: $(flex_extract_deps)
flex_prepare: $(STATEDIR)/flex.prepare
-#
-# dependencies
-#
-flex_prepare_deps = \
- $(STATEDIR)/flex.extract \
- $(STATEDIR)/virtual-xchain.install
-
FLEX_PATH = PATH=$(CROSS_PATH)
FLEX_ENV = $(CROSS_ENV)
@@ -79,7 +70,7 @@ FLEX_ENV = $(CROSS_ENV)
#
FLEX_AUTOCONF = $(CROSS_AUTOCONF_USR)
-$(STATEDIR)/flex.prepare: $(flex_prepare_deps)
+$(STATEDIR)/flex.prepare: $(flex_prepare_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(FLEX_DIR)/config.cache)
cd $(FLEX_DIR) && \
@@ -93,9 +84,7 @@ $(STATEDIR)/flex.prepare: $(flex_prepare_deps)
flex_compile: $(STATEDIR)/flex.compile
-flex_compile_deps = $(STATEDIR)/flex.prepare
-
-$(STATEDIR)/flex.compile: $(flex_compile_deps)
+$(STATEDIR)/flex.compile: $(flex_compile_deps_default)
@$(call targetinfo, $@)
cd $(FLEX_DIR) && $(FLEX_ENV) $(FLEX_PATH) make
@$(call touch, $@)
@@ -106,7 +95,7 @@ $(STATEDIR)/flex.compile: $(flex_compile_deps)
flex_install: $(STATEDIR)/flex.install
-$(STATEDIR)/flex.install: $(STATEDIR)/flex.compile
+$(STATEDIR)/flex.install: $(flex_install_deps_default)
@$(call targetinfo, $@)
@$(call install, FLEX)
@$(call touch, $@)
@@ -117,9 +106,7 @@ $(STATEDIR)/flex.install: $(STATEDIR)/flex.compile
flex_targetinstall: $(STATEDIR)/flex.targetinstall
-flex_targetinstall_deps = $(STATEDIR)/flex.compile
-
-$(STATEDIR)/flex.targetinstall: $(flex_targetinstall_deps)
+$(STATEDIR)/flex.targetinstall: $(flex_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)