Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 203684 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+30 lines)
Line 0 Link Here
1
PREFIX=/usr
2
PYTHON_SITEPACKAGES=`python -c 'from distutils.sysconfig import get_python_lib; import os; print os.path.normcase(os.path.realpath(get_python_lib()))'`
3
4
all: compile
5
6
clean:
7
	rm -f *.pyo
8
	rm -f *.pyc
9
10
compile:
11
	python -c "import compileall; compileall.compile_dir('.')" || die "Compile failed."
12
	python -O -c "import compileall; compileall.compile_dir('.')" || die "Optimization failed."
13
14
make-install-dirs: 
15
	mkdir -p $(DESTDIR)$(PREFIX)/share/xfce4/pyNetworkManager/icons
16
	mkdir -p $(DESTDIR)$(PREFIX)/share/xfce4/pyNetworkManager/lib
17
	mkdir -p $(DESTDIR)$(PREFIX)/share/xfce4/panel-plugins
18
	mkdir -p $(DESTDIR)$(PYTHON_SITEPACKAGES)/pyNM/gtk2
19
	mkdir -p $(DESTDIR)$(PYTHON_SITEPACKAGES)/pyNM/sysNetworkSpeed
20
21
install: make-install-dirs
22
	install -m 755 isconnected.py panelxfce.py traygtk.py windowgtk.py $(DESTDIR)$(PREFIX)/share/xfce4/pyNetworkManager/lib
23
	install -m 755 pyNM/*.py $(DESTDIR)$(PYTHON_SITEPACKAGES)/pyNM
24
	install -m 755 pyNM/gtk2/*.py pyNM/gtk2/setup_net.glade $(DESTDIR)$(PYTHON_SITEPACKAGES)/pyNM/gtk2
25
	install -m 755 pyNM/sysNetworkSpeed/*.py $(DESTDIR)$(PYTHON_SITEPACKAGES)/pyNM/sysNetworkSpeed
26
	install -m 644 icons/*.png $(DESTDIR)$(PREFIX)/share/xfce4/pyNetworkManager/icons
27
	install -m 644 pyNetworkManager.desktop $(DESTDIR)$(PREFIX)/share/xfce4/panel-plugins
28
	echo "ICON_PATH = '$(PREFIX)/share/xfce4/pyNetworkManager/icons/'" > pyNetworkManagerPaths.py
29
	install -m 644 pyNetworkManagerPaths.py $(DESTDIR)$(PREFIX)/share/xfce4/pyNetworkManager/lib
30

Return to bug 203684