#############################################################################
# Makefile for building: examples
# Generated by qmake (1.07a) (Qt 3.3.8b) on: Sun Jul 13 15:10:04 2008
# Project:  examples.pro
# Template: subdirs
# Command: $(QMAKE) -o Makefile examples.pro
#############################################################################

MAKEFILE =	Makefile
QMAKE    =	qmake
DEL_FILE =    rm -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p
INSTALL_FILE= 
INSTALL_DIR = 
SUBTARGETS =	 \
		sub-spreadsheet \
		sub-textedit \
		sub-scriptbutton \
		sub-scribblescripter \
		sub-console \
		sub-game \
		sub-filter \
		sub-wrappers \
		sub-enums

first: all

all: Makefile $(SUBTARGETS)

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

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

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

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

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

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

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

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

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

Makefile: examples.pro  /usr/share/qt/mkspecs/linux-g++/qmake.conf 
	$(QMAKE) -o Makefile examples.pro
qmake: qmake_all
	@$(QMAKE) -o Makefile examples.pro

all: $(SUBTARGETS)
qmake_all: spreadsheet/$(MAKEFILE) textedit/$(MAKEFILE) scriptbutton/$(MAKEFILE) scribblescripter/$(MAKEFILE) console/$(MAKEFILE) game/$(MAKEFILE) filter/$(MAKEFILE) wrappers/$(MAKEFILE) enums/$(MAKEFILE)
	 ( [ -d spreadsheet ] && cd spreadsheet ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d textedit ] && cd textedit ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d scriptbutton ] && cd scriptbutton ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d scribblescripter ] && cd scribblescripter ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d console ] && cd console ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d game ] && cd game ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d filter ] && cd filter ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d wrappers ] && cd wrappers ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
	 ( [ -d enums ] && cd enums ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE
	 ( [ -d spreadsheet ] && cd spreadsheet ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d textedit ] && cd textedit ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d scriptbutton ] && cd scriptbutton ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d scribblescripter ] && cd scribblescripter ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d console ] && cd console ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d game ] && cd game ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d filter ] && cd filter ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d wrappers ] && cd wrappers ; $(MAKE) -f $(MAKEFILE) $@; ) || true
	 ( [ -d enums ] && cd enums ; $(MAKE) -f $(MAKEFILE) $@; ) || true
uninstall_subdirs: qmake_all FORCE
	 ( [ -d spreadsheet ] && cd spreadsheet ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d textedit ] && cd textedit ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d scriptbutton ] && cd scriptbutton ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d scribblescripter ] && cd scribblescripter ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d console ] && cd console ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d game ] && cd game ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d filter ] && cd filter ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d wrappers ] && cd wrappers ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
	 ( [ -d enums ] && cd enums ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
install_subdirs: qmake_all FORCE
	 ( [ -d spreadsheet ] && cd spreadsheet ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d textedit ] && cd textedit ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d scriptbutton ] && cd scriptbutton ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d scribblescripter ] && cd scribblescripter ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d console ] && cd console ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d game ] && cd game ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d filter ] && cd filter ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d wrappers ] && cd wrappers ; $(MAKE) -f $(MAKEFILE) install; ) || true
	 ( [ -d enums ] && cd enums ; $(MAKE) -f $(MAKEFILE) install; ) || true
distclean: qmake_all FORCE
	 ( [ -d spreadsheet ] && cd spreadsheet ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d textedit ] && cd textedit ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d scriptbutton ] && cd scriptbutton ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d scribblescripter ] && cd scribblescripter ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d console ] && cd console ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d game ] && cd game ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d filter ] && cd filter ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d wrappers ] && cd wrappers ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
	 ( [ -d enums ] && cd enums ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true

install:  install_subdirs

uninstall:  uninstall_subdirs

FORCE:

