makefile changed

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@114 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
bergamaschi
2012-11-21 09:01:33 +00:00
parent 832287af9e
commit 29a9678d3b
2 changed files with 37 additions and 21 deletions

View File

@ -1,18 +1,29 @@
PROG= bin/slsDetectorGui
PROG= $(DESTDIR)/slsDetectorGui
DIR= $(shell ls src/* slsDetectorPlotting/include/* slsDetectorPlotting/src/* include/* forms/include/*)
DESTDIR?=bin
DOCDIR?=docs
LIBDIR?=../slsDetectorSoftware
all: $(PROG)
all: $(PROG) Makefile.gui
clean:
if test -e Makefile.gui; then make -f Makefile.gui clean; make -f Makefile.gui mocclean; rm Makefile.gui; else make Makefile.gui; make -f Makefile.gui clean; make -f Makefile.gui mocclean; fi
cd manual && make clean
Makefile.gui: slsDetectorGui.pro
qmake -o Makefile.gui
qmake -o Makefile.gui INCLUDES='$(INCLUDES)' DESTDIR=$(DESTDIR)
doc:
cd manual && make DESTDIR=$(DOCDIR)
htmldoc:
cd manual && make html DESTDIR=$(DOCDIR)
$(PROG): Makefile.gui $(DIR)
make -f Makefile.gui
echo $(LDFLAG)
make -f Makefile.gui SLSDETLIB=$(LIBDIR) DESTDIR=$(DESTDIR) SUBLIBS='$(LDFLAG)' INCLUDES='$(INCLUDES)'