summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-18 23:58:05 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-18 23:58:05 +0000
commit7016801baeff5c53c154d333dca2d2b3a1e82365 (patch)
tree1f094e267006b4252c36bfbeb351d16702cd52d1 /Makefile
parentad9dc7735d6893b234b6815b171b5a20d85e80d1 (diff)
downloadmpv-7016801baeff5c53c154d333dca2d2b3a1e82365.tar.bz2
mpv-7016801baeff5c53c154d333dca2d2b3a1e82365.tar.xz
Simplify help_mp.h generation commands by using $@.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26834 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 514fa61f8a..a50d99f0d9 100644
--- a/Makefile
+++ b/Makefile
@@ -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 >> $@