Imported Upstream version 1.8.15
[platform/upstream/doxygen.git] / vhdlparser / Makefile
1 #
2 # Copyright (C) 1997-2015 by Dimitri van Heesch.
3 #
4 # Permission to use, copy, modify, and distribute this software and its
5 # documentation under the terms of the GNU General Public License is hereby
6 # granted. No representations are made about the suitability of this software
7 # for any purpose. It is provided "as is" without express or implied warranty.
8 # See the GNU General Public License for more details.
9 #
10 # Documents produced by doxygen are derivative works derived from the
11 # input used in their production; they are not affected by this license.
12 #
13
14 #
15 # Files generated by javacc 
16 #
17 GEN_FILES=CharStream.cc CharStream.h ErrorHandler.h ParseException.cc ParseException.h \
18               Token.cc Token.h TokenManager.h TokenMgrError.cc TokenMgrError.h VhdlParser.cc VhdlParser.h \
19               VhdlParserConstants.h VhdlParserTokenManager.cc VhdlParserTokenManager.h \
20               JavaCC.h
21 #
22 # Generate parser (default target)
23 #
24 # when generating the parser with debug options it will look like:
25 #   make JAVACC_FLAGS=-debug_parser 
26 #  or
27 #   make JAVACC_FLAGS="-debug_parser -debug_lookahead"
28 #
29 # Available debug options:
30 #  -debug_parser
31 #  -debug_token_manager
32 #  -debug_lookahead
33 #
34 # For other javacc settings / options consult the documentation of javacc.
35
36 regenerate:
37         @rm -f $(GEN_FILES)
38         @javacc $(JAVACC_FLAGS) vhdlparser.jj
39         @cp JavaCC.h.in JavaCC.h
40
41 #
42 # reset the generated files back to their versions from git.
43 #
44
45 reset_gen_files:
46         @rm -f $(GEN_FILES)
47         @git checkout $(GEN_FILES)
48
49 help:
50         @echo "Targets:"
51         @echo "  regenerate (default)"
52         @echo "  reset_gen_files"
53
54 FORCE: