aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2011-06-20 22:57:30 +0200
committerSebastian Parborg <darkdefende@gmail.com>2011-06-20 22:57:30 +0200
commit244e14cff122f17b0be548654c813e7b0a90d06d (patch)
treeb8a2ab42ecf2b3443245277ab5b60ce82c7413ec
parentIt now parses the doneyet makefile again. (diff)
downloadebuildgen-244e14cff122f17b0be548654c813e7b0a90d06d.tar.gz
ebuildgen-244e14cff122f17b0be548654c813e7b0a90d06d.tar.bz2
ebuildgen-244e14cff122f17b0be548654c813e7b0a90d06d.zip
Worked some more on %.c : %.h commands
-rw-r--r--filetypes/makefilecom.py4
-rw-r--r--filetypes/makefiles.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/filetypes/makefilecom.py b/filetypes/makefilecom.py
index d1e9d65..ee27945 100644
--- a/filetypes/makefilecom.py
+++ b/filetypes/makefilecom.py
@@ -34,7 +34,7 @@ def com_interp(string,variables):
r'\$(\{|\()'
t.lexer.code_start = t.lexer.lexpos # Record the starting position
t.lexer.level = 1 # Initial level
- t.lexer.push_state('ccode') # Enter 'ccode' state
+ t.lexer.push_state('ccode') # Enter 'ccode' state
# Rules for the ccode state
def t_ccode_newcom(t):
@@ -288,4 +288,4 @@ def com_interp(string,variables):
return retlst
-print(com_interp("(SRC:.c=.o)",{"x":["y"], "y":["z"], "z":["u"],'SRC': [['(wildcard src/*.c)']]}))
+#print(com_interp("(SRC:.c=.o)",{"x":["y"], "y":["z"], "z":["u"],'SRC': [['(wildcard src/*.c)']]}))
diff --git a/filetypes/makefiles.py b/filetypes/makefiles.py
index 0323032..581a10c 100644
--- a/filetypes/makefiles.py
+++ b/filetypes/makefiles.py
@@ -30,7 +30,7 @@ def scanmakefile(makefile):
r'\$(\{|\()'
t.lexer.code_start = t.lexer.lexpos # Record the starting position
t.lexer.level = 1 # Initial level
- t.lexer.push_state('ccode') # Enter 'ccode' state
+ t.lexer.push_state('ccode') # Enter 'ccode' state
# Rules for the ccode state
def t_ccode_newcom(t):
@@ -341,7 +341,7 @@ def scanmakefile(makefile):
#deferred
-file="Makefile"
+file="Makefile2"
with open(file, encoding="utf-8", errors="replace") as inputfile:
scanmakefile(inputfile.read())