File: gnumake.py

package info (click to toggle)
monkeystudio 1.9.0.4%2Bgit20161218-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 41,500 kB
  • ctags: 22,118
  • sloc: cpp: 144,671; ansic: 33,969; python: 2,922; makefile: 127; sh: 122; php: 73; cs: 69
file content (39 lines) | stat: -rw-r--r-- 1,926 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import parsing

# generic error rule for make + message
genericErrorMake = parsing.Pattern( r"(?:^|\n)(?:mingw32-)?make(?:\[\d+\])?\s*:(?:\s*\*+)\s*([^\n$]+)",
                                    type = 'error',
                                    text = '%1' )
genericErrorMake.setComment( 'Generic error make message' )

genericErrorMake.test( "mingw32-make: *** No rule to make target `release'.  Stop.\n", 
                type = 'error', 
                text = "No rule to make target `release'.  Stop.",
                hint = "mingw32-make: *** No rule to make target `release'.  Stop." )

# generic warning rule for make + message
genericWarningMake = parsing.Pattern( r"(?:^|\n)(?:mingw32-)?make(?:\[\d+\])?\s*:\s*([^\n$]+)",
                                    type = 'message',
                                    text = '%1' )
genericWarningMake.setComment( 'Generic warning make message' )

genericWarningMake.test( "make: Entering directory `/home/pasnox/Temporaire/cppqtgui'\n",
                type = 'message',
                text = "Entering directory `/home/pasnox/Temporaire/cppqtgui'",
                hint = "make: Entering directory `/home/pasnox/Temporaire/cppqtgui'" )

genericWarningMake.test( "make: Leaving directory `/home/pasnox/Temporaire/cppqtgui'\n",
                type = 'message',
                text = "Leaving directory `/home/pasnox/Temporaire/cppqtgui'",
                hint = "make: Leaving directory `/home/pasnox/Temporaire/cppqtgui'" )

genericWarningMake.test( "make: Nothing to be done for `first'.\n",
                type = 'message',
                text = "Nothing to be done for `first'.",
                hint = "make: Nothing to be done for `first'." )

# Generation of script file
print '# It is a machine generated file. Do not edit it manualy!'
print ''
print genericErrorMake.generateMkSScript( 'GNU Make' )
print genericWarningMake.generateMkSScript( 'GNU Make' )