summaryrefslogtreecommitdiffabout
path: root/desktop/Makefile
blob: ea65c3f81e283711d1d9acbf119fe6df86e3a9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export KDEPIMDIR = $(shell pwd)

export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < ../version)
export KDEDIR=/opt/kde3
export KDE_DEV_DIR=/kde_dev/kdecvs/head/kdepim
all: 
	cd ../kde2file/caldump;qmake;make
	cd ../kde2file/abdump;qmake;make

install:	
	mkdir -p /opt/kdepimpi
	mkdir -p /opt/kde3/share/applnk/PIM-pi
	rm -rf /opt/kdepimpi/*
	rm -f /usr/lib/libmicro*
	rm -fr /opt/kde3/share/applnk/PIM-pi/*
	cp -r ../bin/* /opt/kdepimpi/
	cp --no-dereference ../bin/libmicro* /usr/lib/
	rm -rf /opt/kdepimpi/libmicro*
	rm -rf /usr/lib/libmicrokabc_*
	cp --no-dereference ../bin/libmicrokabc_* /opt/kdepimpi/
	cd /opt/kdepimpi; rm -dfR CVS
	cd /opt/kdepimpi/kdepim; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/pwmanager; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/pwmanager/icons22; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/pwmanager/icons16; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/korganizer; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/korganizer/icons16; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/korganizer/iconsmini; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/korganizer/icons16; rm -dfR .xvpics
	cd /opt/kdepimpi/kdepim/korganizer/iconsmini; rm -dfR .xvpics
	cd /opt/kdepimpi/kdepim/korganizer; rm -dfR .xvpics
	cd /opt/kdepimpi/kdepim/kaddressbook; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/kaddressbook/icons22; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/kaddressbook/icons16; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/kopiemail/icons22; rm -dfR CVS
	cd /opt/kdepimpi/kdepim/kopiemail; rm -dfR CVS
	cd /opt/kdepimpi/kdepim; rm -f Make*
	cp -r PIM-pi/* /opt/kde3/share/applnk/PIM-pi/
	cd /opt/kde3/share/applnk/PIM-pi; rm -fr CVS
#adding KPhone/Pi and KTimeTracker/Pi to the distribution
	cp -fr /home/polo/eigene/apps/* /opt/kdepimpi/
dist: 
	mv /opt/kdepimpi/.microkdehome /root/.microkdehome
	cd rpm;rpmbuild -bb kdepim_rpm
	mv /root/.microkdehome /opt/kdepimpi/.microkdehome