From 108e8281f26671444eec86313b8774bb2a911ee4 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Sat, 24 May 2008 20:18:03 +0000 Subject: [PATCH] backtick expressions get evaluated every time; this is bad --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 40c4c3ccd..2c93bd2c6 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ # The version number, for release: VER_VERSION:=0.9.20 -VER_DATE:=`date +"%Y-%m-%d"` +VER_DATE:=$(shell date +"%Y-%m-%d") MAGIC_API_VERSION:=0x00000001 # Need to know the OS @@ -112,9 +112,9 @@ endif # Icons and launchers: ICON_PREFIX:=$(DESTDIR)$(PREFIX)/share/pixmaps X11_ICON_PREFIX:=$(DESTDIR)$(PREFIX)/X11R6/include/X11/pixmaps -GNOME_PREFIX:=`gnome-config --prefix 2> /dev/null` -KDE_PREFIX:=`kde-config --install apps --expandvars 2> /dev/null` -KDE_ICON_PREFIX:=`kde-config --install icon --expandvars 2> /dev/null` +GNOME_PREFIX:=$(shell gnome-config --prefix 2> /dev/null) +KDE_PREFIX:=$(shell kde-config --install apps --expandvars 2> /dev/null) +KDE_ICON_PREFIX:=$(shell kde-config --install icon --expandvars 2> /dev/null) # Built with sound by default (override with "make nosound") NOSOUNDFLAG:=__SOUND @@ -167,7 +167,7 @@ CFLAGS:=$(OPTFLAGS) -W -Wall -fno-common -ffloat-store \ -Wbad-function-cast -Wwrite-strings \ -Waggregate-return \ -Wstrict-prototypes -Wmissing-prototypes \ - `src/test-option.sh -Wstrict-aliasing=2` + $(shell src/test-option.sh -Wstrict-aliasing=2) DEFS:=-DDATA_PREFIX=\"$(DATA_PREFIX)/\" \ -D$(NOSOUNDFLAG) -D$(NOSVGFLAG) -D$(OLDSVGFLAG) \