aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ed2fb1fadaf0030407880f57892125bb4a810b41 (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
# tpg@mandriva.org
PACKAGE = mageia-xfce-config
VERSION = `date +%Y%m%d`

PREFIX=$(prefix)
xfceconfdir=$(sysconfdir)
xfceprofdir=$(localstatedir)/mageia/xfce-profiles

install:
	-install -d $(DESTDIR)$(xfceconfdir)
	-install -d $(DESTDIR)$(xfceconfdir)/Terminal
	install -m 644 common/Terminal/* $(DESTDIR)$(xfceconfdir)/Terminal/
	-install -d $(DESTDIR)$(xfceconfdir)/Thunar
	install -m 644 common/Thunar/* $(DESTDIR)$(xfceconfdir)/Thunar/
	-install -d $(DESTDIR)$(xfceconfdir)/autostart
	install -m 644 common/autostart/* $(DESTDIR)$(xfceconfdir)/autostart/
	-install -d $(DESTDIR)$(xfceconfdir)/menus
	install -m 644 common/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/theme
#	-install -d $(DESTDIR)$(xfceconfdir)/xfce4/volstatus
	-install -d $(DESTDIR)$(xfceconfdir)/xfce4/xfconf/xfce-perchannel-xml
	-install -d $(DESTDIR)$(PREFIX)/bin
	cp -pr common/xfce4/panel/* $(DESTDIR)$(xfceconfdir)/xfce4/panel/
	install -m 644 common/xfce4/theme/* $(DESTDIR)$(xfceconfdir)/xfce4/theme/
#	install -m 644 common/xfce4/volstatus/* $(DESTDIR)$(xfceconfdir)/xfce4/volstatus/
	install -m 644 common/xfce4/xfconf/xfce-perchannel-xml/* $(DESTDIR)$(xfceconfdir)/xfce4/xfconf/xfce-perchannel-xml/
	install -m 644 common/xfce4/*.rc $(DESTDIR)$(xfceconfdir)/xfce4
	install -m 644 common/xfce4/*.xrdb $(DESTDIR)$(xfceconfdir)/xfce4
	install -m 755 tools/xfce4-firstrun $(DESTDIR)$(PREFIX)/bin

	-install -d $(DESTDIR)$(xfceprofdir)
	-install -d $(DESTDIR)$(xfceprofdir)/Default/xfce4/xfconf/xfce-perchannel-xml
	
	install -m 644 Default/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml $(DESTDIR)$(xfceprofdir)/Default/xfce4/xfconf/xfce-perchannel-xml

cleandist:
	rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2

localcopy:
	svn export -q -rBASE . $(PACKAGE)-$(VERSION)

tar:
	tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
	bzip2 -9vf $(PACKAGE)-$(VERSION).tar
	rm -rf $(PACKAGE)-$(VERSION)

dist: cleandist localcopy tar

.PHONY: ChangeLog log changelog

log: ChangeLog

changelog: ChangeLog

ChangeLog: ../common/username.xml
	svn2cl --accum --authors ../../soft/common/username.xml
	rm -f *.bak
	svn commit -m "Generated by svn2cl the `LC_TIME=C date '+%d_%b'`" ChangeLog