#############################################################################
# Makefile for building: qcake
# Generated by qmake (1.07a) (Qt 3.3.4) on: Tue Sep 26 14:50:12 2006
# Project:  qcake.pro
# Template: subdirs
# Command: $(QMAKE) -o Makefile qcake.pro
#############################################################################

MAKEFILE =	Makefile
QMAKE    =	qmake
DEL_FILE =    rm -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p
INSTALL_FILE= 
INSTALL_DIR = 
SUBTARGETS =	 \
		sub-src \
		sub-qcakeplayer

first: all

all: Makefile $(SUBTARGETS)

src/$(MAKEFILE): 
	@$(CHK_DIR_EXISTS) "src" || $(MKDIR) "src"
	cd src && $(QMAKE) src.pro -o $(MAKEFILE)
sub-src: src/$(MAKEFILE) FORCE
	cd src && $(MAKE) -f $(MAKEFILE)

qcakeplayer/$(MAKEFILE): 
	@$(CHK_DIR_EXISTS) "qcakeplayer" || $(MKDIR) "qcakeplayer"
	cd qcakeplayer && $(QMAKE) qcakeplayer.pro -o $(MAKEFILE)
sub-qcakeplayer: qcakeplayer/$(MAKEFILE) FORCE
	cd qcakeplayer && $(MAKE) -f $(MAKEFILE)

Makefile: qcake.pro  /usr/share/qt3/mkspecs/default/qmake.conf 
	$(QMAKE) -o Makefile qcake.pro
qmake: qmake_all
	@$(QMAKE) -o Makefile qcake.pro

all: $(SUBTARGETS)
qmake_all: src/$(MAKEFILE) qcakeplayer/$(MAKEFILE)
	 ( [ -d src ] && cd src ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d qcakeplayer ] && cd qcakeplayer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE
	 ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d qcakeplayer ] && cd qcakeplayer ; $(MAKE) -f $(MAKEFILE) $@; ) || true
uninstall_subdirs: qmake_all FORCE
	 ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d qcakeplayer ] && cd qcakeplayer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
install_subdirs: qmake_all FORCE
	 ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d qcakeplayer ] && cd qcakeplayer ; $(MAKE) -f $(MAKEFILE) install; ) || true
distclean: qmake_all FORCE
	 ( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d qcakeplayer ] && cd qcakeplayer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true

install:  install_subdirs

uninstall:  uninstall_subdirs

FORCE:

