From: Konrad Rosenbaum Date: Fri, 1 Feb 2013 21:47:07 +0000 (+0100) Subject: add install target; X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c64722baa34717ecb315ee3afdd62600861759c2;p=web%2Fkonrad%2Fpack.git add install target; separate debug symbols from Qt lib --- diff --git a/Makefile b/Makefile index 11def7f..aa08266 100644 --- 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) diff --git a/qtbase/wbase.pro b/qtbase/wbase.pro index 8573518..d740ecf 100644 --- a/qtbase/wbase.pro +++ b/qtbase/wbase.pro @@ -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