Skip to content

add a rule to generate Scanner.h #12

Description

@sandrotosi

Hey,
in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795061 this patch was suggested

*** /home/user/下载/book/git/amule-dlp/src-Makefile.am.diff
diff --git a/src/Makefile.am b/src/Makefile.am
index 9a9b11d..a9d1381 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -477,16 +477,17 @@ $(srcdir)/Parser.cpp: Parser.y
 if GENERATE_FLEX_HEADER
 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
                $(LEX) --header-file=$(srcdir)/Scanner.h -o $@
$(srcdir)/Scanner.l
 else
 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
                $(LEX) -o $@ $(srcdir)/Scanner.l; \
                echo "// Empty file generated by a flex version unable to
create headers" > $(srcdir)/Scanner.h
 endif
+$(srcdir)/Scanner.h: $(srcdir)/Scanner.cpp

 $(srcdir)/IPFilterScanner.cpp: IPFilterScanner.l
                $(LEX) -Pyyip -o $@ $(srcdir)/IPFilterScanner.l;

 # Resources

(reasoning is in the bug report link mentioned above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions