summaryrefslogtreecommitdiffstats
path: root/samba_wizard/Makefile
blob: 19a06c7a6c7ceb8d5d94115b8c37a38240f702c4 (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
install2:
	su -c 'make install'

install:
	mkdir -p --mode=u=rwx,g=rx,o=rx  ${prefix}/share/wizards
	mkdir -p --mode=u=rwx,g=rx,o=rx  ${prefix}/share/wizards/samba_wizard
	mkdir -p --mode=u=rwx,g=rx,o=rx  ${prefix}/share/wizards/samba_wizard/scripts
	mkdir -p --mode=u=rwx,g=rx,o=rx  ${prefix}/share/wizards/samba_wizard/images
	install --mode=u=rw,g=r,o=r -p samba.wiz ${prefix}/share/wizards/samba_wizard
	install --mode=u=rw,g=r,o=r -p samba.en.wpo ${prefix}/share/wizards/samba_wizard
	install --mode=u=rw,g=r,o=r -p samba.fr.wpo ${prefix}/share/wizards/samba_wizard
	install --mode=u=rw,g=r,o=r -p samba.de.wpo ${prefix}/share/wizards/samba_wizard
	install --mode=u=rw,g=r,o=r -p samba.es.wpo ${prefix}/share/wizards/samba_wizard
	install --mode=u=rw,g=r,o=r -p samba.it.wpo ${prefix}/share/wizards/samba_wizard
	install --mode=a=r -p ./images/samba.jpg    ${prefix}/share/wizards/samba_wizard/images
	install --mode=u=rwx,g=rx,o=rx -p scripts/*.sh ${prefix}/share/wizards/samba_wizard/scripts
	install --mode=u=rw,g=r,o=r -p scripts/Smbconf.pm ${prefix}/share/wizards/samba_wizard/scripts
	find scripts -name "*.default" -exec install --mode=u=rw,g=r,o=r -p {} ${prefix}/share/wizards/samba_wizard/scripts \;
	find scripts -name "*.patch" -exec install --mode=u=rw,g=r,o=r -p {} ${prefix}/share/wizards/samba_wizard/scripts \;
	find scripts -name "*.pl" -exec install --mode=u=rwx,g=rx,o=rx -p {} ${prefix}/share/wizards/samba_wizard/scripts \;

run:	
	(su -c "make install; unset WIZPATH; export DEBUG_WIZ='/dev/pts/0'; wiz /usr/share/wizards/samba_wizard/samba.wiz")

desktop:
	cp -f desktop_data/samba_wizard\ wiz ${HOME}/Desktop
	cp -f desktop_data/util1.gif ${HOME}/.kde/share/icons/