2019-11-01 19:11:18 +01:00

30 lines
1.3 KiB
Makefile

SUBDIRS=Grub-Background/kali emblems kali-logos
build:
$(foreach SUBDIR,$(SUBDIRS),$(MAKE) -C $(SUBDIR) build &&) true
# We populate desktop-base subdirectory with stuff to be installed into
# kali-desktop-base in the file structure expected by desktop-base
rm -rf desktop-base
mkdir -p desktop-base/kali-theme/grub
cp Grub-Background/kali/*.png Grub-Background/kali/*.sh desktop-base/kali-theme/grub/
cp -a LockScreen/kali desktop-base/kali-theme/lockscreen
cp -a Wallpapers/kali desktop-base/kali-theme/wallpaper
cp -a LoginScreen/kali desktop-base/kali-theme/login
ln -s /usr/share/plymouth/themes/kali desktop-base/kali-theme/plymouth
clean:
$(foreach SUBDIR,$(SUBDIRS),$(MAKE) -C $(SUBDIR) clean &&) true
rm -rf desktop-base/*
install:
# We use debhelper to install most files, but some subdirectories
# install files by themselves
$(foreach SUBDIR,$(SUBDIRS),$(MAKE) -C $(SUBDIR) install &&) true
# And we need a few supplementary symlinks for good integration
# KDE looks into /usr/share/wallpapers
install -d $(DESTDIR)/usr/share/wallpapers
cd $(DESTDIR)/usr/share/wallpapers && ln -s /usr/share/desktop-base/kali-theme/wallpaper Kali
cd $(DESTDIR)/usr/share/wallpapers && ln -s /usr/share/desktop-base/kali-theme/lockscreen KaliLockScreen
include Makefile.inc