summaryrefslogtreecommitdiff
path: root/extra/config/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-02 04:09:13 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-02 04:09:13 +0000
commit7c220dab2f1fbaa34c637a04663db8f7b65f7b3a (patch)
tree4c19c5909cf0295ad20d863691d12e99bdaa2f56 /extra/config/Makefile
parenta356ea2521cefa80c8622fd8a60d33300cb549e6 (diff)
A few cosmetic adjustments, and fixup the makefile a bit
Diffstat (limited to 'extra/config/Makefile')
-rw-r--r--extra/config/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/extra/config/Makefile b/extra/config/Makefile
index 5b283a297..c782ce4eb 100644
--- a/extra/config/Makefile
+++ b/extra/config/Makefile
@@ -50,22 +50,22 @@ lex.zconf.o: lex.zconf.c $(lkc_deps)
$(NATIVE_CC) $(NATIVE_CFLAGS) -I. -c $< -o $@
lkc_defs.h: lkc_proto.h
- sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
+ @sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
###
# The following requires flex/bison
# By default we use the _shipped versions, uncomment the
# following line if you are modifying the flex/bison src.
-# LKC_GENPARSER := 1
+#LKC_GENPARSER := 1
-#ifdef LKC_GENPARSER
-#
-#%.tab.c %.tab.h: %.y
-# bison -t -d -v -b $* -p $(notdir $*) $<
-#
-#lex.%.c: %.l
-# flex -P$(notdir $*) -o$@ $<
-#else
+ifdef LKC_GENPARSER
+
+%.tab.c %.tab.h: %.y
+ bison -t -d -v -b $* -p $(notdir $*) $<
+
+lex.%.c: %.l
+ flex -P$(notdir $*) -o$@ $<
+else
lex.zconf.c: lex.zconf.c_shipped
cp lex.zconf.c_shipped lex.zconf.c
@@ -75,7 +75,7 @@ zconf.tab.c: zconf.tab.c_shipped
zconf.tab.h: zconf.tab.h_shipped
cp zconf.tab.h_shipped zconf.tab.h
-#endif
+endif
clean:
rm -f *.o *~ core $(TARGETS) $(MCONF_OBJS) $(CONF_OBJS) \