#############################################################################
# Makefile for building: mythtv
# Generated by qmake (1.04a) (Qt 3.1.1) on: Fri Jul 25 13:02:20 2003
# Project:  mythtv.pro
# Template: subdirs
# Command: $(QMAKE) -o Makefile mythtv.pro
#############################################################################

MAKEFILE =	Makefile
QMAKE    =	qmake
DEL_FILE =    rm -f
SUBTARGETS =	 \
		sub-libs \
		sub-filters \
		sub-programs \
		sub-themes \
		sub-setup \
		sub-i18n

first: all

all: Makefile $(SUBTARGETS)

libs/$(MAKEFILE): 
	cd libs && $(QMAKE)  -o $(MAKEFILE)
sub-libs: libs/$(MAKEFILE) FORCE
	cd libs && $(MAKE) -f $(MAKEFILE)

filters/$(MAKEFILE): 
	cd filters && $(QMAKE)  -o $(MAKEFILE)
sub-filters: filters/$(MAKEFILE) FORCE
	cd filters && $(MAKE) -f $(MAKEFILE)

programs/$(MAKEFILE): 
	cd programs && $(QMAKE)  -o $(MAKEFILE)
sub-programs: programs/$(MAKEFILE) FORCE
	cd programs && $(MAKE) -f $(MAKEFILE)

themes/$(MAKEFILE): 
	cd themes && $(QMAKE)  -o $(MAKEFILE)
sub-themes: themes/$(MAKEFILE) FORCE
	cd themes && $(MAKE) -f $(MAKEFILE)

setup/$(MAKEFILE): 
	cd setup && $(QMAKE)  -o $(MAKEFILE)
sub-setup: setup/$(MAKEFILE) FORCE
	cd setup && $(MAKE) -f $(MAKEFILE)

i18n/$(MAKEFILE): 
	cd i18n && $(QMAKE)  -o $(MAKEFILE)
sub-i18n: i18n/$(MAKEFILE) FORCE
	cd i18n && $(MAKE) -f $(MAKEFILE)

Makefile: mythtv.pro  $(QTDIR)/mkspecs/linux-g++/qmake.conf 
	$(QMAKE) -o Makefile mythtv.pro
qmake: qmake_all
	@$(QMAKE) -o Makefile mythtv.pro

all: $(SUBTARGETS)
qmake_all: libs/$(MAKEFILE) filters/$(MAKEFILE) programs/$(MAKEFILE) themes/$(MAKEFILE) setup/$(MAKEFILE) i18n/$(MAKEFILE)
	 ( [ -d libs ] && cd libs ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d filters ] && cd filters ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d programs ] && cd programs ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d themes ] && cd themes ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d setup ] && cd setup ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d i18n ] && cd i18n ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
clean uninstall install uiclean mocclean lexclean yaccclean: qmake_all FORCE
	 ( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) $@; ) || true
distclean: qmake_all FORCE
	 ( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true

FORCE:

