shithub: choc

Download patch

ref: 736082f2c07aec39311b8356e474f447c06abcd3
parent: 16dc726ccb49d94def51487486bf81958620e81d
author: Simon Howard <[email protected]>
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 @@
              @[email protected]
 
 @[email protected] : doom.png
-	cp $^ $@
+	cp $< $@
 
 @[email protected] : setup.png
-	cp $^ $@
+	cp $< $@
 
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -187,26 +187,26 @@
 app_DATA = @[email protected]
 
 @[email protected] : doom.desktop
-	cp $^ $@
+	cp $< $@
 
 screensaverdir = $(prefix)/share/applications/screensavers
 screensaver_DATA = @[email protected]
 
 @[email protected]: 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 $@