main.c and panel.c actually depend on ../config.h

This commit is contained in:
Pierre Pronchery 2009-12-12 21:07:04 +00:00
parent d3bf875dd1
commit 467fc64410
4 changed files with 7 additions and 6 deletions

View File

@ -35,10 +35,10 @@ run_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
run: $(run_OBJS)
$(CC) -o run $(run_OBJS) $(run_LDFLAGS)
panel.o: panel.c common.h ../include/Panel.h
panel.o: panel.c common.h ../include/Panel.h ../config.h
$(CC) $(panel_CFLAGS) -c panel.c
main.o: main.c common.h
main.o: main.c common.h ../config.h
$(CC) $(panel_CFLAGS) -c main.c
run.o: run.c

View File

@ -21,12 +21,13 @@
#include <signal.h>
#include <gtk/gtk.h>
#include "common.h"
#include "../config.h"
/* usage */
static int _usage(void)
{
fputs("Usage: panel\n", stderr);
fputs("Usage: " PACKAGE "\n", stderr);
return 1;
}

View File

@ -214,7 +214,7 @@ int panel_error(Panel * panel, char const * message, int ret)
static int _error_text(char const * message, int ret)
{
fputs("panel: ", stderr);
fputs(PACKAGE ": ", stderr);
perror(message);
return ret;
}

View File

@ -15,10 +15,10 @@ cppflags=-D PREFIX=\"$(PREFIX)\"
install=$(BINDIR)
[main.c]
depends=common.h
depends=common.h,../config.h
[panel.c]
depends=common.h,../include/Panel.h
depends=common.h,../include/Panel.h,../config.h
[run]
type=binary