[MPlayer-cvslog] r26834 - trunk/Makefile

diego subversion at mplayerhq.hu
Mon May 19 01:58:05 CEST 2008


Author: diego
Date: Mon May 19 01:58:05 2008
New Revision: 26834

Log:
Simplify help_mp.h generation commands by using $@.


Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Mon May 19 01:58:05 2008
@@ -761,18 +761,18 @@ version.h:
 	./version.sh `$(CC) -dumpversion`
 
 help_mp.h: help/help_mp-en.h $(HELP_FILE)
-	@echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
-	@echo '// See the help/ subdir for the editable files.' >> help_mp.h
-	@echo '#ifndef MPLAYER_HELP_MP_H' >> help_mp.h
-	@echo '#define MPLAYER_HELP_MP_H' >> help_mp.h
+	@echo '// WARNING! This is a generated file. Do NOT edit.' > $@
+	@echo '// See the help/ subdir for the editable files.' >> $@
+	@echo '#ifndef MPLAYER_HELP_MP_H' >> $@
+	@echo '#define MPLAYER_HELP_MP_H' >> $@
 ifeq ($(CHARSET),UTF-8)
-	@echo '#include "$(HELP_FILE)"' >> help_mp.h
+	@echo '#include "$(HELP_FILE)"' >> $@
 else
-	iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
+	iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> $@
 endif
-	@echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
-	@echo '// untranslated messages from the English master file:' >> help_mp.h
-	help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
+	@echo '#endif /* MPLAYER_HELP_MP_H */' >> $@
+	@echo '// untranslated messages from the English master file:' >> $@
+	help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> $@
 
 
 



More information about the MPlayer-cvslog mailing list