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
|
# Makefile
#
# 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.
#
SHELL := bash -e
DESTDIR =
SHAREDIR = /usr/share/drbl/
SCRIPTS = bin/* sbin/* $(SHAREDIR)/sbin/* $(SHAREDIR)/bin/*
all: drbl-sbin-link languages
build:
@echo "Nothing to build."
drbl-sbin-link:
@echo "Files linking..."
$(MAKE) -C sbin all
languages:
@echo "Files linking..."
$(MAKE) -C lang all
install:
# install exec files
install -d $(DESTDIR)/usr/
cp -a sbin bin $(DESTDIR)/usr/
rm -f $(DESTDIR)/usr/sbin/Makefile
# install setup dir
install -d $(DESTDIR)/$(SHAREDIR)/
cp -a setup $(DESTDIR)/$(SHAREDIR)/
# install other shared files
cp -a lang doc pkg pki image prerun postrun scripts/sbin scripts/bin $(DESTDIR)/$(SHAREDIR)/
# erase an extra COPYING
rm -f $(DESTDIR)/$(SHAREDIR)/pkg/misc/COPYING
rm -f $(DESTDIR)/$(SHAREDIR)/pkg/misc/Makefile $(DESTDIR)/$(SHAREDIR)/lang/Makefile
# install config files
install -d $(DESTDIR)/etc/drbl/
cp -a conf/* $(DESTDIR)/etc/drbl/
# install themes
install -d $(DESTDIR)/usr/share/gdm/themes/drbl-gdm
cp -a themes/* $(DESTDIR)/usr/share/gdm/themes/drbl-gdm/
# fix some permissions
find $(DESTDIR) -perm /111 | grep -E '\.desktop$$|\.service$$' | \
xargs chmod a-x
clean:
$(MAKE) -C sbin clean
$(MAKE) -C lang clean
|