# License: GPL
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#
prefix = /${DESTDIR}

all: drbl-sbin-link languages

drbl-sbin-link:
	@echo "Files linking..."
	$(MAKE) -C sbin all

languages:
	@echo "Files linking..."
	$(MAKE) -C lang all

install:
	install -d ${prefix}/opt/drbl/setup
	cp -a drblsrv drblpush drbl4imp files yum-repos ${prefix}/opt/drbl/setup/
	cp -a conf sbin bin lang doc pkg pki image ${prefix}/opt/drbl/
	install -d ${prefix}/usr/share/gdm/themes/drbl-gdm
	cp -a themes/* ${prefix}/usr/share/gdm/themes/drbl-gdm/

clean:
	$(MAKE) -C sbin clean
	$(MAKE) -C lang clean
