add install target;
authorKonrad Rosenbaum <konrad@silmor.de>
Fri, 1 Feb 2013 21:47:07 +0000 (22:47 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Fri, 1 Feb 2013 21:47:07 +0000 (22:47 +0100)
separate debug symbols from Qt lib

Makefile
qtbase/wbase.pro

index 11def7f..aa08266 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,22 @@
 #######################################################
 
 QMAKE = qmake
+QCONFIG = CONFIG+=release
 DOXYGEN = doxygen
+MKDIR = mkdir -p
+COPY = cp -d --remove-destination
+COPY_R = $(COPY) -r
+
+prefix=/usr/local
+libprefix=$(prefix)/lib
+binprefix=$(prefix)/bin
+docprefix=$(prefix)/share/doc/
+phpprefix=$(prefix)/share/pack/php
+incprefix=$(prefix)/include
 
 all: prewoc woc qtbase doc
 
-.PHONY: prewoc woc qtbase doc clean
+.PHONY: prewoc woc qtbase doc clean install install-woc install-qtbase install-phpbase install-doc
 
 prewoc:
        cd woc && $(QMAKE) -o Makefile.prewoc CONFIG+=prewoc
@@ -34,4 +45,27 @@ clean:
        -rm -rf vinfo
        -rm -rf qtbase/.ctmp qtbase/libqwbase*
        -rm -rf doc/phpbase doc/qtbase doc/woc
-       -rm -rf cgi2scgi/cgi2scgi cgi2scgi/cgi2scgi.exe cgi2scgi/cgi2scgi.app
\ No newline at end of file
+       -rm -rf cgi2scgi/cgi2scgi cgi2scgi/cgi2scgi.exe cgi2scgi/cgi2scgi.app
+
+install: install-woc install-qtbase-dev install-phpbase install-doc
+
+install-woc: woc
+       $(MKDIR) $(binprefix)
+       $(COPY) woc/woc $(binprefix)
+       strip $(binprefix)/woc
+
+install-qtbase: qtbase
+       $(MKDIR) $(libprefix)
+       $(COPY) qtbase/libqwbase* $(libprefix)
+
+install-qtbase-dev: install-qtbase
+       $(MKDIR) $(incprefix)
+       $(COPY) qtbase/include/* $(incprefix)
+
+install-phpbase:
+       $(MKDIR) $(phpprefix)
+       $(COPY) phpbase/*.php $(phpprefix)
+
+install-doc: doc
+       $(MKDIR) $(docprefix)
+       $(COPY_R) doc/*  $(docprefix)
index 8573518..d740ecf 100644 (file)
@@ -5,7 +5,7 @@
 TEMPLATE = lib
 TARGET = qwbase
 DESTDIR = ../qtbase
-CONFIG += dll create_prl
+CONFIG += dll create_prl separate_debug_info
 QT += xml network
 QT -= gui
 OBJECTS_DIR = .ctmp