NAME=theme # Bump RELEASE for new Mageia release # Bump THEMEVER for new theme version in same release RELEASE=6 THEMEVER=1 VERSION=$(RELEASE).$(THEMEVER) THEMES=Mageia-Default configdir=/etc libexecdir=/usr/libexec sharedir=/usr/share unitdir=/usr/lib/systemd/system all: install: mkdir -p $(DESTDIR)$(sharedir)/mga/screensaver mkdir -p $(DESTDIR)$(sharedir)/mga/backgrounds install -m 644 common/screensaver/*.jpg $(DESTDIR)$(sharedir)/mga/screensaver install -m 644 extra-backgrounds/*.jpg $(DESTDIR)$(sharedir)/mga/backgrounds @for t in $(THEMES); do \ set -x; set -e; \ install -d $(DESTDIR)$(sharedir)/plymouth/themes/$$t; \ install -m644 common/plymouth/*.script $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ install -m644 common/plymouth/*.png $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ install -m644 $$t/plymouth/*.plymouth $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ install -m644 $$t/plymouth/*.png $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ install -m644 $$t/background/$$t-*.png $(DESTDIR)$(sharedir)/mga/backgrounds/; \ install -d $(DESTDIR)$(sharedir)/gfxboot/themes/$$t; \ install -m644 $$t/gfxboot/*.jpg $(DESTDIR)$(sharedir)/gfxboot/themes/$$t/; \ done @mkdir -p $(DESTDIR)$(libexecdir) @mkdir -p $(DESTDIR)$(unitdir) install -m755 mga-bg-res/mga-bg-res.sh $(DESTDIR)$(libexecdir)/mga-bg-res install -m644 mga-bg-res/mga-bg-res.service $(DESTDIR)$(unitdir)/mga-bg-res.service dist: cleandist export cleandist: rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.xz export: git archive --prefix $(NAME)-$(VERSION)/ HEAD | xz -9 > $(NAME)-$(VERSION).tar.xz