-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
159 lines (135 loc) · 4.61 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GLIB_VER_DEFINES) \
-DVMNETFS_SCHEMA_PATH=\"$(pkgpythondir)/schema/vmnetfs.xsd\"
AM_CFLAGS = -std=gnu99 -W -Wall -Wstrict-prototypes -pthread \
$(libcurl_CFLAGS) $(glib_CFLAGS) $(gthread_CFLAGS) $(fuse_CFLAGS) \
$(libxml2_CFLAGS)
AM_LDFLAGS = -pthread $(libcurl_LIBS) $(glib_LIBS) $(gthread_LIBS) \
$(fuse_LIBS) $(libxml2_LIBS)
dist_bin_SCRIPTS = tools/vmnetx
nobase_python_PYTHON = \
vmnetx/__init__.py \
vmnetx/protocol.py \
vmnetx/reference.py \
vmnetx/util.py \
vmnetx/win32.py \
vmnetx/controller/__init__.py \
vmnetx/controller/remote.py \
vmnetx/ui/__init__.py \
vmnetx/ui/view.py
nobase_nodist_python_PYTHON = vmnetx/system.py
CLEANFILES = vmnetx/system.py
EXTRA_DIST = vmnetx/system.py.in pylintrc README.md NEWS.md
nobase_dist_pkgpython_DATA = schema/reference.xsd
applicationsdir = $(datarootdir)/applications
icondir = $(datarootdir)/icons/hicolor/256x256/apps
mimedir = $(datarootdir)/mime/packages
dist_applications_DATA = desktop/vmnetx.desktop
dist_icon_DATA = desktop/vmnetx.png
dist_mime_DATA = desktop/vmnetx.xml
EXTRA_DIST += desktop/README.icon
man_MANS = man/vmnetx.1
CLEANFILES += man/vmnetx.1
EXTRA_DIST += man/vmnetx.1.in
vmnetx/system.py: vmnetx/system.py.in Makefile
$(AM_V_at)$(MKDIR_P) vmnetx
$(AM_V_GEN) sed -e "s:@pkglibexecdir@:$(pkglibexecdir):g" \
-e "s:@version@:$(VERSION):g" \
-e "s!@update_check_url@!$(UPDATE_CHECK_URL)!" $< > $@
man/%: man/%.in Makefile
$(AM_V_at)$(MKDIR_P) man
$(AM_V_GEN) sed -e "s:@version@:$(VERSION):g" $< > $@
update-databases:
-update-mime-database $(datarootdir)/mime
-update-desktop-database $(applicationsdir)
install-data-hook: update-databases
uninstall-hook: update-databases
check-local: $(nobase_nodist_python_PYTHON)
@# Combine package sources and generated system.py into one directory
rm -rf lint
mkdir lint
cp -r $(srcdir)/vmnetx lint/vmnetx
@# "make distcheck" sets directories read-only; cp follows suit
chmod -R u+w lint
cp -r $(builddir)/vmnetx/* lint/vmnetx
find lint -type f ! -name \*.py -exec rm {} \;
@# Fail on serious pylint errors
cd lint && PYTHONPATH=. \
$(PYLINT) --rcfile=$(abs_srcdir)/pylintrc vmnetx || \
[ $$(($$? & 3)) -eq 0 ]
rm -rf lint
# When checking "make uninstall", ignore files generated by update-databases
distuninstallcheck_listfiles = find . -path ./share/mime -prune -type f -o \
-type f ! -name mimeinfo.cache
if ENABLE_LOCAL_EXECUTION
dist_bin_SCRIPTS += tools/vmnetx-generate
dist_sbin_SCRIPTS = tools/vmnetx-example-frontend tools/vmnetx-server
pkglibexec_PROGRAMS = vmnetfs/vmnetfs
vmnetfs_vmnetfs_SOURCES = \
vmnetfs/bitmap.c \
vmnetfs/cond.c \
vmnetfs/fuse.c \
vmnetfs/fuse-image.c \
vmnetfs/fuse-misc.c \
vmnetfs/fuse-stats.c \
vmnetfs/fuse-stream.c \
vmnetfs/io.c \
vmnetfs/ll-modified.c \
vmnetfs/ll-pristine.c \
vmnetfs/log.c \
vmnetfs/pollable.c \
vmnetfs/stats.c \
vmnetfs/stream.c \
vmnetfs/transport.c \
vmnetfs/util.c \
vmnetfs/vmnetfs.c \
vmnetfs/vmnetfs-private.h
nobase_python_PYTHON += \
vmnetx/define.py \
vmnetx/domain.py \
vmnetx/generate.py \
vmnetx/memory.py \
vmnetx/package.py \
vmnetx/source.py \
vmnetx/controller/local/__init__.py \
vmnetx/controller/local/monitor.py \
vmnetx/controller/local/virtevent.py \
vmnetx/controller/local/vmnetfs.py \
vmnetx/server/__init__.py \
vmnetx/server/http.py
nobase_dist_pkgpython_DATA += \
schema/domain.xsd \
schema/domain-metadata.xsd \
schema/package.xsd \
schema/vmnetfs.xsd \
schema/libvirt/basictypes.rng \
schema/libvirt/domaincommon.rng \
schema/libvirt/domain.rng \
schema/libvirt/networkcommon.rng \
schema/libvirt/storageencryption.rng
EXTRA_DIST += vmnetx.te
man_MANS += \
man/vmnetx-generate.1 \
man/vmnetx-example-frontend.8 \
man/vmnetx-server.8
CLEANFILES += \
man/vmnetx-generate.1 \
man/vmnetx-example-frontend.8 \
man/vmnetx-server.8
EXTRA_DIST += \
man/vmnetx-generate.1.in \
man/vmnetx-example-frontend.8.in \
man/vmnetx-server.8.in
dbusconfdir = $(sysconfdir)/dbus-1/system.d
dbusservicedir = $(datarootdir)/dbus-1/system-services
polkitactiondir = $(datarootdir)/polkit-1/actions
dist_pkglibexec_SCRIPTS = authorizer/authorizer
dist_dbusconf_DATA = authorizer/org.olivearchive.VMNetX.Authorizer.conf
dbusservice_DATA = authorizer/org.olivearchive.VMNetX.Authorizer.service
dist_polkitaction_DATA = authorizer/org.olivearchive.VMNetX.Authorizer.policy
CLEANFILES += authorizer/org.olivearchive.VMNetX.Authorizer.service
EXTRA_DIST += authorizer/org.olivearchive.VMNetX.Authorizer.service.in
%.service: %.service.in Makefile
$(AM_V_at)$(MKDIR_P) authorizer
$(AM_V_GEN) sed -e "s:@pkglibexecdir@:$(pkglibexecdir):g" $< > $@
endif