shithub: choc

Download patch

ref: 736082f2c07aec39311b8356e474f447c06abcd3
parent: 16dc726ccb49d94def51487486bf81958620e81d
author: Simon Howard <fraggle@gmail.com>
date: Thu Jul 21 10:21:57 EDT 2011

Don't use $^ in Makefiles, as it s a GNU make extension (thanks Jakub
Lach).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2354

--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -14,8 +14,8 @@
              @PROGRAM_PREFIX@setup.png
 
 @PROGRAM_PREFIX@doom.png : doom.png
-	cp $^ $@
+	cp $< $@
 
 @PROGRAM_PREFIX@setup.png : setup.png
-	cp $^ $@
+	cp $< $@
 
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -187,26 +187,26 @@
 app_DATA = @PROGRAM_PREFIX@doom.desktop
 
 @PROGRAM_PREFIX@doom.desktop : doom.desktop
-	cp $^ $@
+	cp $< $@
 
 screensaverdir = $(prefix)/share/applications/screensavers
 screensaver_DATA = @PROGRAM_PREFIX@doom-screensaver.desktop
 
 @PROGRAM_PREFIX@doom-screensaver.desktop: doom-screensaver.desktop
-	cp $^ $@
+	cp $< $@
 
 .rc.o:
-	$(WINDRES) $^ -o $@
+	$(WINDRES) $< -o $@
 %.o : %.rc
-	$(WINDRES) $^ -o $@
+	$(WINDRES) $< -o $@
 
 if HAVE_PYTHON
 
 icon.c : ../data/doom8.ico
-	../data/convert-icon $^ $@
+	../data/convert-icon $< $@
 
 endif
 
 midiread : midifile.c
-	$(CC) -DTEST $(CFLAGS) @LDFLAGS@ $^ -o $@
+	$(CC) -DTEST $(CFLAGS) @LDFLAGS@ $< -o $@