~roeldeconinck/mnemosyne-proj/import

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
default:
	cd mnemosyne/pyqt_ui ; make clean
	cd mnemosyne/pyqt_ui ; make
	python setup.py install
	rm -f -R build

windows:
	rmdir /S /Q dist
	rmdir /S /Q build
	python setup.py build
	python setup.py py2exe --packages=xml.sax --includes=sip 

clean:
	rm -f *~ *.pyc *.tgz
	rm -f -R distrib build
	cd mnemosyne/pyqt_ui ; make clean	
	rm -f mnemosyne/*~ mnemosyne/*.pyc
	rm -f mnemosyne/core/*~ mnemosyne/core/*.pyc
 
distrib: FORCE
	make clean
	cd mnemosyne/pyqt_ui ; make

	mkdir distrib
	cp setup.py README LICENSE AUTHORS ChangeLog distrib

	mkdir distrib/mnemosyne
	cp mnemosyne/*.py distrib/mnemosyne

	mkdir distrib/mnemosyne/core
	cp mnemosyne/core/*.py distrib/mnemosyne/core

	mkdir distrib/mnemosyne/pyqt_ui
	cp mnemosyne/pyqt_ui/*.py distrib/mnemosyne/pyqt_ui
	cp mnemosyne/pyqt_ui/*.ui distrib/mnemosyne/pyqt_ui
	cp mnemosyne/pyqt_ui/mnemosyne distrib/mnemosyne/pyqt_ui

	mkdir distrib/pixmaps
	cp pixmaps/*.png distrib/pixmaps

	V=`python mnemosyne/version.py` && mv distrib mnemosyne-$${V}

	V=`python mnemosyne/version.py` && tar cvfz mnemosyne-$${V}.tgz \
		mnemosyne-$${V}/*

	V=`python mnemosyne/version.py` && rm -R mnemosyne-$${V}

	#mkdir distrib/memaid_superkaramba
	#cp memaid_superkaramba/memaid_superkaramba.py \
	#	distrib/memaid_superkaramba
	#cp memaid_superkaramba/memaid_superkaramba.theme \
	#	distrib/memaid_superkaramba
	#mkdir distrib/memaid_superkaramba/pixmaps
	#cp memaid_superkaramba/pixmaps/*.png \
	#	distrib/memaid_superkaramba/pixmaps 

	#mkdir distrib/memaid_superkaramba/docs	
	#cp memaid_superkaramba/docs/memaid_superkaramba.html \
	#	distrib/memaid_superkaramba/docs/
	#cp memaid_superkaramba/docs/memaid_superkaramba.png \
	#	distrib/memaid_superkaramba/docs/


FORCE: