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
6fcceeff
Commit
6fcceeff
authored
Jan 29, 2014
by
Hisham Muhammad
Browse files
Merge pull request #4 from robberos/master
Possible to regenerate headers outside of srcdir
parents
76a715ee
5aac1733
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
6fcceeff
...
...
@@ -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 @
6fcceeff
...
...
@@ -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