Fix regeneration of headers

This commit is contained in:
Hisham Muhammad 2007-05-21 19:09:19 +00:00
parent d2f767e607
commit e1a7e2bdef
1 changed files with 26 additions and 18 deletions

View File

@ -11,22 +11,27 @@ pixmap_DATA = htop.png
AM_CFLAGS = -pedantic -Wall -std=c99 AM_CFLAGS = -pedantic -Wall -std=c99
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
htop_SOURCES = AvailableMetersPanel.c CategoriesPanel.c ClockMeter.c \ myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \
CPUMeter.c CRT.c DebugMemory.c DisplayOptionsPanel.c FunctionBar.c \ ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c DebugMemory.c \
Hashtable.c Header.c htop.c Panel.c ListItem.c LoadAverageMeter.c \ DisplayOptionsPanel.c FunctionBar.c Hashtable.c Header.c htop.c ListItem.c \
MemoryMeter.c Meter.c MetersPanel.c Object.c Process.c \ LoadAverageMeter.c MemoryMeter.c Meter.c MetersPanel.c Object.c Panel.c \
ProcessList.c RichString.c ScreenManager.c Settings.c SignalItem.c \ Process.c ProcessList.c RichString.c ScreenManager.c Settings.c \
SignalsPanel.c String.c SwapMeter.c TasksMeter.c Vector.c \ SignalItem.c SignalsPanel.c String.c SwapMeter.c TasksMeter.c TraceScreen.c \
UptimeMeter.c UsersTable.c AvailableMetersPanel.h CategoriesPanel.h \ UptimeMeter.c UsersTable.c Vector.c AvailableColumnsPanel.c
ClockMeter.h config.h CPUMeter.h CRT.h debug.h DebugMemory.h \
DisplayOptionsPanel.h FunctionBar.h Hashtable.h Header.h htop.h Panel.h \ myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \
ListItem.h LoadAverageMeter.h MemoryMeter.h Meter.h \ CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \
MetersPanel.h Object.h Process.h ProcessList.h RichString.h ScreenManager.h \ CPUMeter.h CRT.h DebugMemory.h DisplayOptionsPanel.h FunctionBar.h \
Settings.h SignalItem.h SignalsPanel.h String.h SwapMeter.h TasksMeter.h \ Hashtable.h Header.h htop.h ListItem.h LoadAverageMeter.h MemoryMeter.h \
Vector.h UptimeMeter.h UsersTable.h CheckItem.c CheckItem.h \ Meter.h MetersPanel.h Object.h Panel.h ProcessList.h RichString.h \
ColorsPanel.c ColorsPanel.h TraceScreen.c TraceScreen.h \ ScreenManager.h Settings.h SignalItem.h SignalsPanel.h String.h \
AvailableColumnsPanel.c AvailableColumnsPanel.h ColumnsPanel.c \ SwapMeter.h TasksMeter.h TraceScreen.h UptimeMeter.h UsersTable.h Vector.h \
ColumnsPanel.h Process.h
SUFFIXES = .h
BUILT_SOURCES = $(myhtopheaders)
htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h debug.h
profile: profile:
$(MAKE) all CFLAGS="-pg -O2" $(MAKE) all CFLAGS="-pg -O2"
@ -40,5 +45,8 @@ hardened-debug:
debuglite: debuglite:
$(MAKE) all CFLAGS="-ggdb -DDEBUGLITE" $(MAKE) all CFLAGS="-ggdb -DDEBUGLITE"
.h:.c .c.h:
scripts/MakeHeader $@ scripts/MakeHeader.py $<