aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2d2d5b8ca6ac06806a8ff109d3829313ab5fb1e3 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 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.14
MGAVERSION = 8
RELEASE = 5

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 HEAD;

	$(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