Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
5aac1733
Commit
5aac1733
authored
Nov 29, 2013
by
Robert Rosengren
Browse files
Possible to regenerate headers outside of srcdir
parent
76a715ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Makefile.am
View file @
5aac1733
...
...
@@ -43,7 +43,7 @@ debug:
$(MAKE)
all
CFLAGS
=
""
AM_CPPFLAGS
=
"-ggdb -DDEBUG"
.c.h
:
scripts/MakeHeader.py
$<
@
srcdir@/
scripts/MakeHeader.py
$<
cppcheck
:
cppcheck
-q
-v
.
--enable
=
all
-DHAVE_CGROUP
-DHAVE_OPENVZ
-DHAVE_TASKSTATS
scripts/MakeHeader.py
View file @
5aac1733
...
...
@@ -28,8 +28,8 @@ selfheader = '#include "' + name + '.h"'
out
.
write
(
"/* Do not edit this file. It was automatically generated. */"
)
out
.
write
(
""
)
out
.
write
(
"#ifndef HEADER_"
+
name
)
out
.
write
(
"#define HEADER_"
+
name
)
out
.
write
(
"#ifndef HEADER_"
+
os
.
path
.
basename
(
name
)
)
out
.
write
(
"#define HEADER_"
+
os
.
path
.
basename
(
name
)
)
is_blank
=
False
for
line
in
file
.
readlines
():
line
=
line
[:
-
1
]
...
...
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