summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-29 08:35:58 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-29 08:35:58 +0000
commitb4c9a8858f94f0cb5dae3d4ebb2c2414b612cd22 (patch)
tree02b6360f036219422a93d2e59bb9c7f7da1c76c1 /Makefile
parentd663d7facb143b214ce20edacb81cb2b65cdc1bc (diff)
downloadmpv-b4c9a8858f94f0cb5dae3d4ebb2c2414b612cd22.tar.bz2
mpv-b4c9a8858f94f0cb5dae3d4ebb2c2414b612cd22.tar.xz
cosmetics: Move version.h/help_mp.h generation rules to a better place.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26594 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 22 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index ee06bbb893..da688c5121 100644
--- a/Makefile
+++ b/Makefile
@@ -698,6 +698,28 @@ $(DEPS) recurse: help_mp.h version.h codecs.conf.h
dep depend: $(DEPS)
for part in $(PARTS); do $(MAKE) -C $$part depend; done
+# rebuild at every config.h/config.mak change:
+version.h: config.h config.mak
+ ./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
+ifeq ($(CHARSET),)
+ @echo '#include "$(HELP_FILE)"' >> help_mp.h
+else
+ iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
+endif
+ @echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
+
+ifneq ($(HELP_FILE),help/help_mp-en.h)
+ @echo "Adding untranslated messages to 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
+endif
+
define RECURSIVE_RULE
$(part)/$(part).a:
$(MAKE) -C $(part)
@@ -847,34 +869,12 @@ config.mak: configure
@echo "####### Please run ./configure again - it's changed! #######"
@echo "############################################################"
-# rebuild at every config.h/config.mak change:
-version.h: config.h config.mak
- ./version.sh `$(CC) -dumpversion`
-
doxygen:
doxygen DOCS/tech/Doxyfile
doxygen_clean:
-rm -rf DOCS/tech/doxygen
-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
-ifeq ($(CHARSET),)
- @echo '#include "$(HELP_FILE)"' >> help_mp.h
-else
- iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
-endif
- @echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
-
-ifneq ($(HELP_FILE),help/help_mp-en.h)
- @echo "Adding untranslated messages to 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
-endif
-
TOOLS = TOOLS/alaw-gen$(EXESUF) \
TOOLS/asfinfo$(EXESUF) \