You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
3.1 KiB
118 lines
3.1 KiB
# -*- makefile -*-
|
|
#
|
|
# Main Makefile for building the TQt library, examples and tutorial.
|
|
|
|
SHELL=/bin/sh
|
|
|
|
init: FORCE
|
|
@$(MAKE) all
|
|
uninstall: FORCE
|
|
@$(MAKE) qt.uninstall
|
|
install: FORCE
|
|
@$(MAKE) qt.install
|
|
|
|
all: symlinks src-tqmake src-tqmoc sub-src sub-tools sub-tutorial sub-examples
|
|
@echo
|
|
@echo "The TQt library is now built in ./lib"
|
|
@echo "The TQt examples are built in the directories in ./examples"
|
|
@echo "The TQt tutorials are built in the directories in ./tutorial"
|
|
@echo
|
|
@echo "Enjoy! - the Trolltech team"
|
|
@echo
|
|
|
|
qt.install: tqmake-install tqmoc-install src-install tools-install plugins-install
|
|
qt.uninstall: tqmake-uninstall tqmoc-uninstall src-uninstall tools-uninstall plugins-uninstall
|
|
|
|
#tqmoc
|
|
tqmoc-uninstall: .tqmake.cache
|
|
cd src/tqmoc && $(MAKE) uninstall
|
|
tqmoc-install: src-tqmoc
|
|
cd src/tqmoc && $(MAKE) install
|
|
src-tqmoc: src-tqmake FORCE
|
|
cd src/tqmoc && $(MAKE)
|
|
|
|
#Qt
|
|
src-uninstall: .tqmake.cache
|
|
cd src && $(MAKE) uninstall
|
|
src-install: sub-src
|
|
cd src && $(MAKE) install
|
|
sub-src: src-tqmoc .tqmake.cache FORCE
|
|
cd src && $(MAKE)
|
|
|
|
#tqmake
|
|
tqmake-uninstall: .tqmake.cache
|
|
cd tqmake && $(MAKE) uninstall
|
|
tqmake-install: src-tqmake
|
|
cd tqmake && $(MAKE) install
|
|
src-tqmake: symlinks FORCE
|
|
cd tqmake && $(MAKE)
|
|
|
|
#tools
|
|
tools-uninstall: .tqmake.cache
|
|
cd tools && $(MAKE) uninstall
|
|
tools-install: sub-tools
|
|
cd tools && $(MAKE) install
|
|
sub-tools: sub-plugins FORCE
|
|
cd tools && $(MAKE)
|
|
|
|
#plugins
|
|
plugins-uninstall: .tqmake.cache
|
|
cd plugins/src && $(MAKE) uninstall
|
|
plugins-install: sub-plugins
|
|
cd plugins/src && $(MAKE) install
|
|
sub-plugins: sub-src .tqmake.cache FORCE
|
|
cd plugins/src && $(MAKE)
|
|
|
|
#tutorials
|
|
sub-tutorial: sub-src FORCE
|
|
cd tutorial && $(MAKE)
|
|
|
|
#examples
|
|
sub-examples: sub-tools FORCE
|
|
cd examples && $(MAKE)
|
|
|
|
#docs
|
|
doc: FORCE
|
|
qdoc util/qdoc/qdoc.conf
|
|
|
|
symlinks: .tqmake.cache
|
|
# @cd include && rm -f q*.h; ln -s ../src/*/q*.h .; ln -s ../extensions/*/src/q*.h .; rm -f q*_p.h
|
|
|
|
distclean clean uiclean mocclean:
|
|
cd tools && $(MAKE) $@
|
|
cd src/tqmoc && $(MAKE) $@
|
|
cd src && $(MAKE) $@
|
|
cd tutorial && $(MAKE) $@
|
|
cd plugins/src && $(MAKE) $@
|
|
cd examples && $(MAKE) $@
|
|
cd config.tests/unix/stl && $(MAKE) $@
|
|
cd config.tests/unix/endian && $(MAKE) distclean
|
|
cd config.tests/unix/ipv6 && $(MAKE) distclean
|
|
cd config.tests/unix/largefile && $(MAKE) distclean
|
|
cd config.tests/unix/ptrsize && $(MAKE) distclean
|
|
[ ! -f config.tests/x11/notype/Makefile ] || cd config.tests/x11/notype && $(MAKE) $@
|
|
cd tqmake && $(MAKE) $@
|
|
|
|
#confclean is actually the same as distclean, except tqmake and tqmoc
|
|
#are not cleaned.
|
|
confclean:
|
|
cd tools && $(MAKE) distclean
|
|
cd src && $(MAKE) distclean
|
|
cd tutorial && $(MAKE) distclean
|
|
cd plugins/src && $(MAKE) distclean
|
|
cd examples && $(MAKE) distclean
|
|
cd config.tests/unix/stl && $(MAKE) distclean
|
|
cd config.tests/unix/endian && $(MAKE) distclean
|
|
cd config.tests/unix/ipv6 && $(MAKE) distclean
|
|
cd config.tests/unix/largefile && $(MAKE) distclean
|
|
cd config.tests/unix/ptrsize && $(MAKE) distclean
|
|
[ ! -f config.tests/x11/notype/Makefile ] || cd config.tests/x11/notype && $(MAKE) distclean
|
|
|
|
.tqmake.cache:
|
|
@echo
|
|
@echo ' TQt must first be configured using the "configure" script.'
|
|
@echo
|
|
@test ! /bin/true
|
|
|
|
FORCE:
|