Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
8ceb2254
Commit
8ceb2254
authored
Jun 08, 2015
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Jun 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a head_% makefile target
Gives you just the top 40 lines. For use in combination with watch_%
parent
d2c03eaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Makefile
Makefile
+13
-1
No files found.
Makefile
View file @
8ceb2254
...
...
@@ -1160,7 +1160,9 @@ watch_%:
TARGET
=
$(
dir
$@
)$(
patsubst
watch_%,%,
$(
notdir
$@
))
;
\
clear
;
$(MAKE)
$$
TARGET
$(WATCH_ARGS)
;
true
;
\
while
inotifywait
-q
-e
modify
-e
attrib
-e
move
-e
move_self
-e
create
-e
delete
-e
delete_self
\
Makefile
$$
(
find
.
\(
-name
'*.cpp'
-o
-name
'*.h'
-o
-name
'*.py'
\)
)
;
do
clear
;
$(MAKE)
$$
TARGET
$(WATCH_ARGS)
;
done
)
Makefile
$$
(
find src
test
\(
-name
'*.cpp'
-o
-name
'*.h'
-o
-name
'*.py'
\)
)
;
do
clear
;
\
$(MAKE)
$$
TARGET
$(WATCH_ARGS)
;
\
done
)
# Makefile $
$
(
find
\(
-name
'*.cpp'
-o
-name
'*.h'
-o
-name
'*.py'
\)
-o
-type
d
)
;
do
clear
;
$(MAKE)
$(
patsubst
watch_%,%,
$@
)
;
done
)
# -r . ; do clear;
$(MAKE)
$(
patsubst
watch_%,%,
$@
)
;
done
watch
:
watch_pyston_dbg
...
...
@@ -1169,6 +1171,16 @@ watch_vim:
wdbg_%
:
$(MAKE)
$(
patsubst
wdbg_%,watch_dbg_%,
$@
)
GDB_POST_CMDS
=
"--ex quit"
.PHONY
:
head_%
HEAD
:=
40
head_%
:
@
bash
-c
"set -o pipefail; script -e -q -c '
$(MAKE)
$(
dir
$@
)$(
patsubst
head_%,%,
$(
notdir
$@
))
' /dev/null | head -n
$(HEAD)
"
head
:
head_pyston_dbg
.PHONY
:
hwatch_%
hwatch_%
:
@
$(MAKE)
$(
dir
$@
)$(
patsubst
hwatch_%,watch_head_%,
$(
notdir
$@
))
hwatch
:
hwatch_pyston_dbg
.PHONY
:
test_asm test_cpp_asm
test_asm
:
$(CLANGPP_EXE)
$(TEST_DIR)
/test.s
-c
-o
test_asm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment