File: Makefile.am

package info (click to toggle)
concordance 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,700 kB
  • sloc: cpp: 7,203; sh: 4,621; ansic: 882; python: 707; perl: 171; makefile: 132; xml: 34
file content (80 lines) | stat: -rw-r--r-- 2,351 bytes parent folder | download | duplicates (3)
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
# libconcord
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libconcord.la
libconcord_la_SOURCES = remote.cpp remote_z.cpp libconcord.cpp binaryfile.cpp \
	web.cpp usblan.cpp binaryfile.h hid.h protocol_z.h \
	remote_info.h web.h protocol.h remote.h usblan.h xml_headers.h \
	operationfile.cpp remote_mh.cpp libusbhid.cpp libhidapi.cpp
include_HEADERS = libconcord.h
libconcord_la_CPPFLAGS = -Wall
libconcord_la_LDFLAGS = -version-info 4:0:0 $(LIBCONCORD_LDFLAGS) -lzip
libconcord_la_CXXFLAGS = $(ZIP_CFLAGS)
UDEVROOT ?= /
UDEVLIBDIR ?= $(UDEVROOT)/lib

# udev and friends support
udev:
	./gen_udev_support -u

old_udev:
	./gen_udev_support -o

generic_udev:
	./gen_udev_support -g

install_udev_common:
	$(MKDIR_P) $(DESTDIR)$(UDEVLIBDIR)/udev/rules.d
	$(install_sh_DATA) libconcord.rules \
		$(DESTDIR)$(UDEVLIBDIR)/udev/rules.d/60-libconcord.rules
	$(install_sh_DATA) libconcord-usbnet.rules \
		$(DESTDIR)$(UDEVLIBDIR)/udev/rules.d/80-libconcord-usbnet.rules
	$(install_sh_SCRIPT) start_concordance_dhcpd.sh \
		$(DESTDIR)$(UDEVLIBDIR)/udev/
	$(install_sh_SCRIPT) start_concordance_dhcpd_wrapper.sh \
		$(DESTDIR)$(UDEVLIBDIR)/udev/

install_udev: udev install_udev_common
install_old_udev: old_udev install_udev_common
install_generic_udev: generic_udev install_udev_common

policykit:
	./gen_udev_support -p

install_policykit: policykit install_udev_common
	$(MKDIR_P) $(DESTDIR)$(datarootdir)/hal/fdi/policy/10osvendor/
	$(MKDIR_P) $(DESTDIR)$(datarootdir)/PolicyKit/policy/
	$(install_sh_DATA) libconcord.fdi \
		$(DESTDIR)$(datarootdir)/hal/fdi/policy/10osvendor/99-libconcord.fdi
	$(install_sh_DATA) org.freedesktop.hal.device-access.libconcord.policy \
		$(DESTDIR)$(datarootdir)/PolicyKit/policy/

consolekit:
	./gen_udev_support -c

install_consolekit: consolekit install_udev_common
	$(MKDIR_P) $(DESTDIR)$(datarootdir)/hal/fdi/policy/10osvendor/
	$(install_sh_DATA) libconcord.perms \
		$(DESTDIR)$(datarootdir)/hal/fdi/policy/10osvendor/99-libconcord.perms

# MIME stuff

newmimedir = $(datadir)/mime/packages
newmime_DATA = libconcord.xml

EXTRA_DIST = \
	$(mime_DATA) \
	$(newmime_DATA)

install-data-hook:
if HAVE_NEW_MIME
	if test -z "$(DESTDIR)"; then \
		$(UPDATE_MIME_DATABASE) "$(datadir)/mime"; \
	fi
endif

uninstall-hook:
if HAVE_NEW_MIME
	if test -z "$(DESTDIR)"; then \
		$(UPDATE_MIME_DATABASE) "$(datadir)/mime"; \
	fi
endif