diff Makefile @ 17958:ac071d4aafd2

Don't call make from shell constructs it prevent proper build paralelization.
author albeu
date Sun, 26 Mar 2006 10:52:13 +0000
parents 810177996118
children 916d035cec47
line wrap: on
line diff
--- a/Makefile	Sun Mar 26 10:43:56 2006 +0000
+++ b/Makefile	Sun Mar 26 10:52:13 2006 +0000
@@ -21,12 +21,6 @@
 INSTALLSTRIP = -s
 endif
 
-# These subdirectories require installation due to binaries within them.
-ifeq ($(VIDIX),yes)
-SUBDIRS += libdha vidix
-DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
-endif
-
 SRCS_COMMON = asxparser.c \
               codec-cfg.c \
               cpudetect.c \
@@ -466,7 +460,8 @@
 
 install: $(ALL_PRG)
 ifeq ($(VIDIX),yes)
-	$(DO_MAKE)
+	$(MAKE) -C libdha install
+	$(MAKE) -C vidix install
 endif
 	if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
 	$(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG)
@@ -535,7 +530,8 @@
 	  fi ; \
 	done
 ifeq ($(VIDIX),yes)
-	$(DO_MAKE)
+	$(MAKE) -C libdha uninstall
+	$(MAKE) -C vidix uninstall
 endif
 	@echo "Uninstall completed"