# original author tpg@mandriva.org # # modifications for mageia: # ahmadsamir3891@gmail.com # wally@mageia.org NAME = mageia-xfce-config # Versioning scheme uses Xfce version $(XFCEVERSION) as base. Next part, # $(MGAVERSION), identifies current Mageia release. Last $(RELEASE) part # identifies sequential release number of the package. # # So: # * Change $(XFCEVERSION) only when Xfce version changes. # * Change $(MGAVERSION) when doing a new release after new stable Mageia version is released # * Increase $(RELEASE) when releasing a new release. # * Note that numbering goes with following sequence 0,1..9,10,11..99,100,101 # and so on. # # Examples of version numbers: # * 4.10.1.0 (Initial Xfce 4.10 settings version for Mageia 1) # * 4.10.5.2 (Second new feature or bug fix release of Xfce 4.10 settings for Mageia 5) XFCEVERSION = 4.18 MGAVERSION = 9 RELEASE = 1 VERSION = $(XFCEVERSION).$(MGAVERSION).$(RELEASE) DESTDIR= prefix=/usr datadir=$(prefix)/share sysconfdir=/etc iconsdir=$(datadir)/icons xfceconfdir=$(sysconfdir)/xdg install: -install -d $(DESTDIR)$(xfceconfdir) -install -d $(DESTDIR)$(xfceconfdir)/Thunar install -m 644 data/Thunar/* $(DESTDIR)$(xfceconfdir)/Thunar/ -install -d $(DESTDIR)$(xfceconfdir)/menus install -m 644 data/menus/xfce-applications.menu $(DESTDIR)$(xfceconfdir)/menus/xfce-applications.menu -install -d $(DESTDIR)$(xfceconfdir)/xfce4 -install -d $(DESTDIR)$(xfceconfdir)/xfce4/desktop -install -d $(DESTDIR)$(xfceconfdir)/xfce4/panel -install -d $(DESTDIR)$(xfceconfdir)/xfce4/terminal -install -d $(DESTDIR)$(xfceconfdir)/xfce4/theme -install -d $(DESTDIR)$(xfceconfdir)/xfce4/xfconf/xfce-perchannel-xml cp -pr data/xfce4/panel/* $(DESTDIR)$(xfceconfdir)/xfce4/panel/ install -m 644 data/xfce4/terminal/* $(DESTDIR)$(xfceconfdir)/xfce4/terminal/ install -m 644 data/xfce4/theme/* $(DESTDIR)$(xfceconfdir)/xfce4/theme/ install -m 644 data/xfce4/xfconf/xfce-perchannel-xml/* $(DESTDIR)$(xfceconfdir)/xfce4/xfconf/xfce-perchannel-xml/ install -m 644 data/xfce4/*.rc $(DESTDIR)$(xfceconfdir)/xfce4 install -m 644 data/xfce4/*.xrdb $(DESTDIR)$(xfceconfdir)/xfce4 dist: rm -rf $(NAME)-$(XFCEVERSION)*.tar* @git config tar.tar.xz.command "xz -c"; @git archive --prefix=$(NAME)-$(VERSION)/ -o $(NAME)-$(VERSION).tar.xz $(VERSION); $(info $(NAME)-$(VERSION).tar.xz is ready) news: @if grep -q $(VERSION) NEWS; then \ echo ""; \ echo "Version $(VERSION) already exists in NEWS file!"; \ echo "Please update version in Makefile first."; \ echo ""; \ exit 1; \ else \ sed -i -e "1i Version $(VERSION) - $$(date --rfc-3339=date)" NEWS; \ echo "";\ echo "Updated NEWS";\ echo "";\ fi; NEWS: news tag: @git tag -a $(VERSION) -m "$(VERSION)" .PHONY: ChangeLog NEWS