changeset 19051:7d1896a52428

Clean up codec-cfg and friends handling.
author diego
date Thu, 13 Jul 2006 01:20:14 +0000
parents 9c5077988cb7
children 6866e768aef8
files Makefile
diffstat 1 files changed, 7 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Jul 12 23:51:41 2006 +0000
+++ b/Makefile	Thu Jul 13 01:20:14 2006 +0000
@@ -6,8 +6,6 @@
 
 include config.mak
 
-PRG_CFG = codec-cfg
-
 LIBAV_INC =
 ifeq ($(CONFIG_LIBAVUTIL),yes)
 LIBAV_INC += -I./libavutil
@@ -412,18 +410,17 @@
 	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(LIBS_MENCODER)
 endif
 
-codecs.conf.h: $(PRG_CFG) etc/codecs.conf
-	./$(PRG_CFG) ./etc/codecs.conf > $@
+codec-cfg: codec-cfg.c codec-cfg.h help_mp.h
+	$(HOST_CC) -I. -DCODECS2HTML codec-cfg.c -o $@
+
+codecs.conf.h: codec-cfg etc/codecs.conf
+	./codec-cfg ./etc/codecs.conf > $@
 
 codec-cfg.o: codecs.conf.h
 
 codecs2html: mp_msg.o
 	$(CC) -DCODECS2HTML codec-cfg.c mp_msg.o -o $@
 
-$(PRG_CFG): codec-cfg.c codec-cfg.h help_mp.h
-	$(HOST_CC) $(HOST_CFLAGS) -I. codec-cfg.c -o $(PRG_CFG) \
-	-DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC)
-
 install: $(ALL_PRG)
 ifeq ($(VIDIX),yes)
 	$(MAKE) -C libdha install
@@ -490,10 +487,10 @@
 	@echo "Uninstall completed"
 
 clean:
-	-rm -f *.o *.a *~ codecs.conf.h
+	-rm -f *.o *.a *~
 
 distclean: clean doxygen_clean
-	-rm -f *~ $(PRG) $(PRG_MENCODER) $(PRG_CFG)
+	-rm -f *~ $(PRG) $(PRG_MENCODER) codec-cfg codecs2html
 	-rm -f .depend configure.log codecs.conf.h help_mp.h
 	@for a in $(PARTS); do $(MAKE) -C $$a distclean; done