Makefile.am 1.93 KB
Newer Older
1 2
AUTOMAKE_OPTIONS = foreign

Mike Miller's avatar
Mike Miller committed
3
SUBDIRS = shared properties src po
4 5

if WITH_GNOME
6 7 8
if WITH_AUTHDLG
SUBDIRS += auth-dialog
endif
9
endif
10

11 12 13
dbusservicedir = $(sysconfdir)/dbus-1/system.d
dbusservice_DATA = nm-openconnect-service.conf

14
nmvpnservicedir = $(NM_VPN_SERVICE_DIR)
15 16
nmvpnservice_DATA = nm-openconnect-service.name

17
if WITH_LIBNM_GLIB
18 19 20 21 22 23
# Install a file with full path to plugins for an old gnome-shell
# https://bugzilla.gnome.org/show_bug.cgi?id=693590
install-data-hook:
	mkdir -p $(DESTDIR)$(sysconfdir)/NetworkManager/VPN
	sed -e "1s|^|# This file is obsoleted by a file in $(NM_VPN_SERVICE_DIR)\n\n|" \
	    -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|g' \
Mike Miller's avatar
Mike Miller committed
24
	    -e 's|[@]PLUGINDIR[@]|@NM_PLUGIN_DIR@|g' \
25 26 27 28 29
	    <$(srcdir)/nm-openconnect-service.name.in \
	    >$(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-openconnect-service.name

uninstall-hook:
	 rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-openconnect-service.name
30 31
endif

32
appdatadir = $(datadir)/appdata
Mike Miller's avatar
Mike Miller committed
33 34
appdata_files = $(appdata_in_files:.xml.in=.xml)
if WITH_GNOME
35
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
Mike Miller's avatar
Mike Miller committed
36
endif
37
appdata_in_files = appdata/network-manager-openconnect.metainfo.xml.in
38 39
@INTLTOOL_XML_RULE@

40
nm-openconnect-service.name: $(srcdir)/nm-openconnect-service.name.in
41
	sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|g' \
Mike Miller's avatar
Mike Miller committed
42
	    -e 's|[@]PLUGINDIR[@]/|@NM_PLUGIN_DIR_NAME_FILE@|g' \
43
	    $< >$@
44

45 46
DISTCHECK_CONFIGURE_FLAGS = --enable-more-warnings=yes

47 48 49 50
EXTRA_DIST = nm-openconnect-service.name.in \
             $(dbusservice_DATA)  \
             $(desktop_in_files)  \
             $(icon_DATA)         \
51
             $(appdata_in_files)  \
Mike Miller's avatar
Mike Miller committed
52
             $(appdata_files)     \
53 54
             intltool-extract.in  \
             intltool-merge.in    \
55 56
             intltool-update.in   \
             openconnect-strings.txt
57

58 59
CLEANFILES = $(nmvpnservice_DATA) \
             $(desktop_DATA)      \
Mike Miller's avatar
Mike Miller committed
60
             $(appdata_files)
61

62
DISTCLEANFILES = intltool-extract intltool-merge intltool-update
Michael Biebl's avatar
Michael Biebl committed
63 64

ACLOCAL_AMFLAGS = -I m4