QGIS/Makefile
gsherman 6c5c5b6015 Makefile changes for plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@135 c8812cc2-4d05-0410-92ff-de0c093fc19c
2002-10-13 21:41:38 +00:00

49 lines
1.5 KiB
Makefile

#############################################################################
# Makefile for building: qgis
# Generated by qmake (1.03a) on: Sun Oct 13 13:41:57 2002
# Project: qgis.pro
# Template: subdirs
# Command: $(QMAKE) qgis.pro
#############################################################################
MAKEFILE = Makefile
QMAKE = qmake
SUBDIRS = src \
plugins
DEL_FILE = rm -f
SUBTARGETS = \
sub-src \
sub-plugins
first: all
all: Makefile $(SUBTARGETS)
src/$(MAKEFILE):
cd src && $(QMAKE) -o $(MAKEFILE)
sub-src: src/$(MAKEFILE) FORCE
cd src && $(MAKE) -f $(MAKEFILE)
plugins/$(MAKEFILE):
cd plugins && $(QMAKE) -o $(MAKEFILE)
sub-plugins: plugins/$(MAKEFILE) FORCE
cd plugins && $(MAKE) -f $(MAKEFILE)
Makefile: qgis.pro $(QTDIR)/mkspecs/default/qmake.conf
$(QMAKE) qgis.pro
qmake: qmake_all
@$(QMAKE) qgis.pro
qmake_all: src/$(MAKEFILE) plugins/$(MAKEFILE)
for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; grep "^qmake_all:" $(MAKEFILE) 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) qmake_all || true; fi; ) ; done
clean: qmake_all FORCE
for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) clean; fi; ) ; done
uninstall install uiclean mocclean: qmake_all FORCE
for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) $@; fi; ) ; done
distclean: qmake_all FORCE
for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) $@ ; $(DEL_FILE) $(MAKEFILE) ; fi; ) ; done
FORCE: