comparison 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
comparison
equal deleted inserted replaced
17957:adffed192053 17958:ac071d4aafd2
17 endif 17 endif
18 18
19 # Do not strip the binaries at installation 19 # Do not strip the binaries at installation
20 ifeq ($(STRIPBINARIES),yes) 20 ifeq ($(STRIPBINARIES),yes)
21 INSTALLSTRIP = -s 21 INSTALLSTRIP = -s
22 endif
23
24 # These subdirectories require installation due to binaries within them.
25 ifeq ($(VIDIX),yes)
26 SUBDIRS += libdha vidix
27 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
28 endif 22 endif
29 23
30 SRCS_COMMON = asxparser.c \ 24 SRCS_COMMON = asxparser.c \
31 codec-cfg.c \ 25 codec-cfg.c \
32 cpudetect.c \ 26 cpudetect.c \
464 $(HOST_CC) $(HOST_CFLAGS) -I. codec-cfg.c -o $(PRG_CFG) \ 458 $(HOST_CC) $(HOST_CFLAGS) -I. codec-cfg.c -o $(PRG_CFG) \
465 -DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC) 459 -DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC)
466 460
467 install: $(ALL_PRG) 461 install: $(ALL_PRG)
468 ifeq ($(VIDIX),yes) 462 ifeq ($(VIDIX),yes)
469 $(DO_MAKE) 463 $(MAKE) -C libdha install
464 $(MAKE) -C vidix install
470 endif 465 endif
471 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi 466 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
472 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG) 467 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG)
473 ifeq ($(GUI),yes) 468 ifeq ($(GUI),yes)
474 -ln -sf $(PRG) $(BINDIR)/gmplayer 469 -ln -sf $(PRG) $(BINDIR)/gmplayer
533 $(MANDIR)/$$l/man1/mencoder.1 \ 528 $(MANDIR)/$$l/man1/mencoder.1 \
534 $(MANDIR)/$$l/man1/gmplayer.1 ; \ 529 $(MANDIR)/$$l/man1/gmplayer.1 ; \
535 fi ; \ 530 fi ; \
536 done 531 done
537 ifeq ($(VIDIX),yes) 532 ifeq ($(VIDIX),yes)
538 $(DO_MAKE) 533 $(MAKE) -C libdha uninstall
534 $(MAKE) -C vidix uninstall
539 endif 535 endif
540 @echo "Uninstall completed" 536 @echo "Uninstall completed"
541 537
542 clean: 538 clean:
543 -rm -f *.o *.a *~ codecs.conf.h 539 -rm -f *.o *.a *~ codecs.conf.h