blob: 916d7bc795ba2bac82944398bbdba6b247107b40 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# 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 = 4
BUGFIX = 0
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)/ $(VERSION) | 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
|