ref: cf45f8744fd01179d58970abe55fc6234f17f78d
parent: 2b9f2b82aeee6bee235ee2e78c4c237cb308104b
author: Ralph Giles <giles@mozilla.com>
date: Tue Sep 4 06:04:50 EDT 2012
Define a PROGS variable in Makefile.unix. This avoids duplicating the program listing in both the all and clean targets.
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -5,7 +5,8 @@
CFLAGS:=-DPACKAGE='"opus-tools"' -DVERSION='"0.1.4git"' -DOPUSTOOLS -O2 -g -c -Wall -Wextra -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT $(CFLAGS)
INCLUDES=-I../opus/include
-all: opusenc opusdec opusinfo
+PROGS := opusenc opusdec opusinfo
+all: $(PROGS)
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@
@@ -23,4 +24,4 @@
$(CC) $(LDFLAGS) src/opusrtp.o -o opusrtp -logg
clean:
- rm -f src/*.o opusenc opusdec opusinfo
+ rm -f src/*.o $(PROGS)