/[soft]/mageia-xfce-config/trunk/Makefile
ViewVC logotype

Contents of /mageia-xfce-config/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8672 - (show annotations) (download)
Sun Jul 28 14:38:02 2013 UTC (10 years, 9 months ago) by wally
File size: 3085 byte(s)
version 4.100.2.0
1 # original author tpg@mandriva.org
2 #
3 # modifications for mageia:
4 # ahmadsamir3891@gmail.com
5 # wally@mageia.org
6
7 NAME = mageia-xfce-config
8
9 # Versioning scheme uses Xfce version as base. 'Zero' after $(XFCEVERSION)
10 # separates our versions from Xfce version. Next part, $(BUILD), identifies
11 # sequential release number of the package. Last $(BUGFIX) part is only used
12 # when doing a bug fix release for stable Mageia versions and is normally
13 # 'zero'.
14 #
15 # So:
16 # * Change $(XFCEVERSION) only when Xfce version changes.
17 # * Change $(BUILD) when doing a new release.
18 # * Use $(BUGFIX) only when releasing a bug fix release for stable Mageia
19 # versions.
20 # * Note that numbering goes with following sequence 0,1..9,10,11..99,100,101
21 # and so on.
22 #
23 # Examples of version numbers:
24 # * 4.100.1.0 (Initial Xfce 4.10 settings version)
25 # * 4.100.5.2 (Second bugfix release for 5th release of Xfce 4.10 settings)
26
27 XFCEVERSION = 4.10
28 BUILD = 2
29 BUGFIX = 0
30
31 VERSION = $(XFCEVERSION)0.$(BUILD).$(BUGFIX)
32
33 DESTDIR=
34 prefix=/usr
35 datadir=$(prefix)/share
36 sysconfdir=/etc
37 iconsdir=$(datadir)/icons
38 xfceconfdir=$(sysconfdir)/xdg
39
40 install:
41 -install -d $(DESTDIR)$(xfceconfdir)
42 -install -d $(DESTDIR)$(xfceconfdir)/Thunar
43 install -m 644 data/Thunar/* $(DESTDIR)$(xfceconfdir)/Thunar/
44 -install -d $(DESTDIR)$(xfceconfdir)/menus
45 install -m 644 data/menus/xfce-applications.menu $(DESTDIR)$(xfceconfdir)/menus/xfce-applications.menu
46 -install -d $(DESTDIR)$(xfceconfdir)/xfce4
47 -install -d $(DESTDIR)$(xfceconfdir)/xfce4/desktop
48 -install -d $(DESTDIR)$(xfceconfdir)/xfce4/panel
49 -install -d $(DESTDIR)$(xfceconfdir)/xfce4/terminal
50 -install -d $(DESTDIR)$(xfceconfdir)/xfce4/theme
51 -install -d $(DESTDIR)$(xfceconfdir)/xfce4/xfconf/xfce-perchannel-xml
52 cp -pr data/xfce4/panel/* $(DESTDIR)$(xfceconfdir)/xfce4/panel/
53 install -m 644 data/xfce4/terminal/* $(DESTDIR)$(xfceconfdir)/xfce4/terminal/
54 install -m 644 data/xfce4/theme/* $(DESTDIR)$(xfceconfdir)/xfce4/theme/
55 install -m 644 data/xfce4/xfconf/xfce-perchannel-xml/* $(DESTDIR)$(xfceconfdir)/xfce4/xfconf/xfce-perchannel-xml/
56 install -m 644 data/xfce4/*.rc $(DESTDIR)$(xfceconfdir)/xfce4
57 install -m 644 data/xfce4/*.xrdb $(DESTDIR)$(xfceconfdir)/xfce4
58
59 dist-svn:
60 rm -rf $(NAME)-$(XFCEVERSION)*
61 svn export -q -rBASE . $(NAME)-$(VERSION)
62 find $(NAME)-$(VERSION) -name .svnignore -delete
63 tar cfa ../$(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION)
64 rm -rf $(NAME)-$(VERSION)
65
66 dist-git:
67 @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz;
68
69 dist:
70 rm -rf ../$(NAME)-$(XFCEVERSION)*.tar*
71
72 @if [ -e ".svn" ]; then \
73 $(MAKE) dist-svn; \
74 elif [ -e ".git" ]; then \
75 $(MAKE) dist-git; \
76 else \
77 echo "Unknown SCM (not SVN nor GIT)";\
78 exit 1; \
79 fi;
80
81 $(info $(NAME)-$(VERSION).tar.xz is ready)
82
83 news:
84 @if grep -q $(VERSION) NEWS; then \
85 echo ""; \
86 echo "Version $(VERSION) already exists in NEWS file!"; \
87 echo "Please update version in Makefile first."; \
88 echo ""; \
89 exit 1; \
90 else \
91 sed -i -e "1i Version $(VERSION) - $$(date --rfc-3339=date)" NEWS; \
92 fi;
93
94 NEWS: news
95
96 .PHONY: ChangeLog NEWS
97

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.30