# original author tpg@mandriva.org # # modifications for mageia: # ahmadsamir3891@gmail.com # wally@mageia.org NAME = mageia-xfce-config # Versioning scheme uses Xfce version as base. 'Zero' after $(XFCEVERSION) # separates our versions from Xfce version. Next part, $(BUILD), identifies # sequential release number of the package. Last $(BUGFIX) part is only used # when doing a bug fix release for stable Mageia versions and is normally # 'zero'. # # So: # * Change $(XFCEVERSION) only when Xfce version changes. # * Change $(BUILD) when doing a new release. # * Use $(BUGFIX) only when releasing a bug fix release for stable Mageia # versions. # * Note that numbering goes with following sequence 0,1..9,10,11..99,100,101 # and so on. # # Examples of version numbers: # * 4.100.1.0 (Initial Xfce 4.10 settings version) # * 4.100.5.2 (Second bugfix release for 5th release of Xfce 4.10 settings) XFCEVERSION = 4.10 BUILD = 5 BUGFIX = 2 VERSION = $(XFCEVERSION)0.$(BUILD).$(BUGFIX) 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-svn: rm -rf $(NAME)-$(XFCEVERSION)* svn export -q -rBASE . $(NAME)-$(VERSION) find $(NAME)-$(VERSION) -name .svnignore -delete tar cfa ../$(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION) rm -rf $(NAME)-$(VERSION) dist-git: @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz; dist: rm -rf ../$(NAME)-$(XFCEVERSION)*.tar* @if [ -e ".svn" ]; then \ $(MAKE) dist-svn; \ elif [ -e ".git" ]; then \ $(MAKE) dist-git; \ else \ echo "Unknown SCM (not SVN nor GIT)";\ exit 1; \ fi; $(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 .PHONY: ChangeLog NEWS