summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-06-20 10:24:08 +0000
committerDiego Biurrun <diego@biurrun.de>2006-06-20 10:24:08 +0000
commitf1cc88a5d65edb26eb63a032f6835008927a02c0 (patch)
tree3648e7ee10d66202a251aa866a90e0bc748ba61f /Makefile
parentd2845d68c8f7c6bce632bac8e2cee56c73b7db89 (diff)
Use Subversion revision for FFMPEG_VERSION.
based on a patch by Ismail Dönmez ismail$$at$$pardus$$dot$$org$$dot$$tr Originally committed as revision 5502 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a3b94a59b6..8335a8716f 100644
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
FFLIBDIRS = -L./libavformat -L./libavcodec -L./libavutil
FFLIBS = -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF)
-all: lib $(PROGS_G) $(PROGS) $(PROGTEST) $(VHOOK) $(QTFASTSTART) $(DOC)
+all: version.h lib $(PROGS_G) $(PROGS) $(PROGTEST) $(VHOOK) $(QTFASTSTART) $(DOC)
lib:
$(MAKE) -C libavutil all
@@ -90,6 +90,10 @@ ffplay_g$(EXESUF): ffplay.o cmdutils.o .libs
cp -p $< $@
$(STRIP) $@
+.PHONY: version.h
+version.h:
+ $(SRC_PATH)/version.sh
+
output_example$(EXESUF): output_example.o .libs
$(CC) $(FFLIBDIRS) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)
@@ -220,7 +224,7 @@ distclean: clean
$(MAKE) -C libpostproc distclean
$(MAKE) -C tests distclean
$(MAKE) -C vhook distclean
- rm -f .depend config.mak config.h *.pc
+ rm -f .depend config.mak config.h version.h *.pc
TAGS:
etags *.[ch] libavformat/*.[ch] libavcodec/*.[ch]