-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (60 loc) · 2.37 KB
/
Makefile
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
DESTDIR=
VERSION=3.2.4
NAME=totem-plugin-arte
PACKAGE=$(NAME)-$(VERSION)
VALAC=valac
VALA_DEPS=--pkg Totem-1.0 --pkg PeasGtk-1.0 --pkg libsoup-2.4 --pkg gtk+-3.0 --pkg gio-2.0 --pkg json-glib-1.0
CC_ARGS=-X -fPIC -X -shared --Xcc="-D GETTEXT_PACKAGE=\"totem-arte\""
VALA_ARGS=-D DEBUG_MESSAGES $(CC_ARGS) -g
VALA_SOURCE=\
arteplus7.vala \
arteparser.vala \
cache.vala \
url-extractor.vala \
video.vala \
cell-renderer-video.vala \
video-list-view.vala \
connection-status.vala
EXTRA_DIST=\
arteplus7.plugin \
arteplus7-default.png \
org.gnome.totem.plugins.arteplus7.gschema.xml \
Makefile README AUTHORS COPYING NEWS ChangeLog
all:
$(VALAC) --library=arteplus7 $(VALA_SOURCE) $(VALA_DEPS) $(VALA_ARGS) -o libarteplus7.so
msgfmt --output-file=po/de.mo po/de.po
msgfmt --output-file=po/fr.mo po/fr.po
install:
mkdir -p $(DESTDIR)/usr/lib/totem/plugins/arteplus7 $(DESTDIR)/usr/share/totem/plugins/arteplus7
cp -f arteplus7.plugin $(DESTDIR)/usr/lib/totem/plugins/arteplus7
cp -f libarteplus7.so $(DESTDIR)/usr/lib/totem/plugins/arteplus7
cp -f arteplus7-default.png $(DESTDIR)/usr/share/totem/plugins/arteplus7
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas
cp -f org.gnome.totem.plugins.arteplus7.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas
ifeq ($(DISABLE_SCHEMAS_COMPILE),)
glib-compile-schemas $(DESTDIR)/usr/share/glib-2.0/schemas/
endif
mkdir -p $(DESTDIR)/usr/share/locale/de/LC_MESSAGES
mkdir -p $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES
cp -f po/de.mo $(DESTDIR)/usr/share/locale/de/LC_MESSAGES/totem-arte.mo
cp -f po/fr.mo $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES/totem-arte.mo
uninstall:
rm -r $(DESTDIR)/usr/lib/totem/plugins/arteplus7 $(DESTDIR)/usr/share/totem/plugins/arteplus7
rm $(DESTDIR)/usr/share/glib-2.0/schemas/org.gnome.totem.plugins.arteplus7.gschema.xml
glib-compile-schemas $(DESTDIR)/usr/share/glib-2.0/schemas/
rm $(DESTDIR)/usr/share/locale/de/LC_MESSAGES/totem-arte.mo
rm $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES/totem-arte.mo
clean:
rm -f arteplus7.c cache.c url-extractor.c libarteplus7.so
rm -f arteplus7.vapi
rm -f po/*mo
dist:
rm -f ChangeLog
git log --pretty=short > ChangeLog
mkdir $(PACKAGE)
mkdir $(PACKAGE)/po
cp -f $(VALA_SOURCE) $(PACKAGE)/
cp -f $(EXTRA_DIST) $(PACKAGE)/
cp -f po/POTFILES.in po/POTFILES.skip po/arte-totem.pot po/de.po po/fr.po $(PACKAGE)/po/
tar -pczf $(PACKAGE).tar.gz $(PACKAGE)/
rm -rf $(PACKAGE)