forked from pithos/pithos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
127 lines (92 loc) · 3.92 KB
/
Makefile.am
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --with-docs
# ----------- pithos --------------
pithosdir = $(pythondir)/pithos/
pithos_PYTHON = $(wildcard pithos/*.py)
pandoradir = $(pithosdir)/pandora
pandora_PYTHON = $(wildcard pithos/pandora/*.py)
pluginsdir = $(pithosdir)/plugins
plugins_PYTHON = $(wildcard pithos/plugins/*.py)
pluginsdbusdir = $(pithosdir)/plugins/dbus_util
pluginsdbus_PYTHON = $(wildcard pithos/plugins/dbus_util/*.py)
bin_SCRIPTS = bin/pithos
bin/pithos: bin/pithos.in
@$(MKDIR_P) bin
$(AM_V_GEN)$(SED) \
-e s!\@prefix\@!$(prefix)! \
-e s!\@datadir\@!$(datadir)! \
-e s!\@pkgdatadir\@!$(pkgdatadir)! \
-e s!\@pkglibdir\@!$(pkglibdir)! \
-e s!\@localedir\@!$(localedir)! \
-e s!\@pythondir\@!$(pythondir)! \
-e s!\@pyexecdir\@!$(pyexecdir)! \
-e s!\@VERSION\@!$(VERSION)! \
-e s!\@PYTHON\@!$(PYTHON)! \
< $< > $@
@chmod a+x $@
run: $(BUILT_SOURCES) data/gschemas.compiled bin/pithos
env GSETTINGS_SCHEMA_DIR=$(srcdir)/data $(srcdir)/bin/pithos -v
# ------------ data ----------------
if HAVE_HELP2MAN
# This is generally only ran by maintainers and the result kept in tree
data/pithos.1: bin/pithos pithos/application.py
@$(MKDIR_P) data
$(AM_V_GEN)$(HELP2MAN) $< --no-info -o $@
endif
man1_MANS = data/pithos.1
gsettings_SCHEMAS = data/io.github.Pithos.gschema.xml
@GSETTINGS_RULES@
# This is just for running locally and not normally built
data/gschemas.compiled: $(gsettings_SCHEMAS)
$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) data
pkgdata_DATA = pithos.gresource
noinst_DATA = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=data --generate-dependencies data/io.github.Pithos.gresource.xml)
pithos.gresource: data/io.github.Pithos.gresource.xml $(noinst_DATA)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate $<
desktop_in_files = data/io.github.Pithos.desktop.in
desktop_FILES = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
@DESKTOP_FILE_RULES@
appstream_in_files = data/io.github.Pithos.appdata.xml.in
appstream_XML = $(appstream_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
@APPSTREAM_XML_RULES@
hicolor_scalabledir = $(datadir)/icons/hicolor/scalable/apps
hicolor_scalable_DATA = data/icons/hicolor/scalable/apps/io.github.Pithos.svg \
data/icons/hicolor/scalable/apps/pithos-tray-icon.svg
hicolordir = $(datadir)/icons/hicolor/48x48/apps
hicolor_DATA = data/icons/hicolor/48x48/apps/pithos-tray-icon.png
ubuntu_lightdir = $(datadir)/icons/ubuntu-mono-light/16x16/apps
ubuntu_light_DATA = data/icons/ubuntu-mono-light/16x16/apps/pithos-tray-icon.svg
ubuntu_darkdir = $(datadir)/icons/ubuntu-mono-dark/16x16/apps
ubuntu_dark_DATA = data/icons/ubuntu-mono-dark/16x16/apps/pithos-tray-icon.svg
UPDATE_ICON_CACHE = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor || :
install-data-hook:
$(UPDATE_ICON_CACHE);
uninstall-hook:
$(UPDATE_ICON_CACHE);
BUILT_SOURCES = pithos.gresource
SUBDIRS = po
CLEANFILES = $(pkgdata_DATA) $(bin_SCRIPTS) $(desktop_FILES) $(appstream_XML) data/gschemas.compiled
DISTCLEANFILES = $(man1_MANS)
EXTRA_DIST = license README.md autogen.sh requirements-osx.txt bin/pithos.in data/io.github.Pithos.gresource.xml \
$(appstream_in_files) $(desktop_in_files) $(noinst_DATA) $(gsettings_SCHEMAS) $(hicolor_DATA) \
$(hicolor_scalable_DATA) $(ubuntu_light_DATA) $(ubuntu_dark_DATA) $(man1_MANS)
# -------------- docs ---------------
if WITH_DOCS
sphinx_verbose = $(sphinx_verbose_$(V))
sphinx_verbose_ = $(sphinx_verbose_$(AM_DEFAULT_VERBOSITY))
sphinx_verbose_0 = @echo " SPHINX " $@; $(SPHINX_BUILD) $< $@ > /dev/null;
sphinx_verbose_1 = $(SPHINX_BUILD) $< $@;
docs/html: docs docs/conf.py docs/index.rst
$(sphinx_verbose)
all-local: docs/html
install-data-local:
$(INSTALL) -d $(htmldir)
cp -r docs/html $(htmldir)
uninstall-local:
rm -rf $(htmldir)/html
clean-local:
rm -rf docs/html
endif
EXTRA_DIST += docs/conf.py docs/index.rst