mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Possible to regenerate headers outside of srcdir
This commit is contained in:
parent
76a715ee8c
commit
5aac1733a6
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user