Every tool is now influenced by the PREFIX (for the translations)

This commit is contained in:
Pierre Pronchery 2013-11-21 04:21:37 +01:00
parent 644639ec70
commit 33c9604316
2 changed files with 4 additions and 2 deletions

View File

@ -18,14 +18,14 @@ INSTALL = install
all: $(TARGETS)
panel-embed_OBJS = embed.o
panel-embed_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
panel-embed_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) -D PREFIX=\"$(PREFIX)\" $(CFLAGSF) $(CFLAGS)
panel-embed_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
panel-embed: $(panel-embed_OBJS)
$(CC) -o panel-embed $(panel-embed_OBJS) $(panel-embed_LDFLAGS)
panel-message_OBJS = message.o
panel-message_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
panel-message_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) -D PREFIX=\"$(PREFIX)\" $(CFLAGSF) $(CFLAGS)
panel-message_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
panel-message: $(panel-message_OBJS)

View File

@ -6,6 +6,7 @@ dist=Makefile,helper.c
[panel-embed]
type=binary
cppflags=-D PREFIX=\"$(PREFIX)\"
sources=embed.c
install=$(BINDIR)
@ -17,6 +18,7 @@ install=$(BINDIR)
[panel-message]
type=binary
cppflags=-D PREFIX=\"$(PREFIX)\"
sources=message.c
install=$(BINDIR)