travis: Add build tests for NM plugin
[strongswan.git] / src / frontends / gnome / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = properties auth-dialog po
4
5 nmvpnservice_DATA = nm-strongswan-service.name
6
7 @INTLTOOL_DESKTOP_RULE@
8
9 appdatadir = $(datadir)/appdata
10 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
11 appdata_in_files = NetworkManager-strongswan.appdata.xml.in
12 @INTLTOOL_XML_RULE@
13
14 if WITH_LIBNM_GLIB
15 # Install a file with full path to plugins for an old gnome-shell
16 # https://bugzilla.gnome.org/show_bug.cgi?id=693590
17 install-data-hook:
18         mkdir -p $(DESTDIR)$(sysconfdir)/NetworkManager/VPN
19         sed -e "1s|^|# This file is obsoleted by a file in $(nmvpnservicedir)\n\n|" \
20             -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|g' \
21             -e 's|[@]NM_PLUGINDIR[@]|$(nm_plugindir)|g' \
22             -e 's|[@]NM_PLUGINDIR_ABS[@]|$(nm_plugindir)|g' \
23             -e 's|[@]CHARON[@]|$(charon)|' \
24             <$(srcdir)/nm-strongswan-service.name.in \
25             >$(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-strongswan-service.name
26
27 uninstall-hook:
28          rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-strongswan-service.name
29 endif
30
31 nm-strongswan-service.name: $(srcdir)/nm-strongswan-service.name.in
32         $(AM_V_GEN) \
33         sed -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|' \
34             -e 's|[@]NM_PLUGINDIR[@]|$(nm_plugindir)|g' \
35             -e 's|[@]NM_PLUGINDIR_ABS[@]/|$(nm_plugindir_abs)|g' \
36             -e 's|[@]CHARON[@]|$(charon)|' $< >$@
37
38 EXTRA_DIST = \
39     nm-strongswan-service.name.in  \
40     $(appdata_in_files)  \
41     intltool-extract.in  \
42     intltool-merge.in    \
43     intltool-update.in
44
45 CLEANFILES = $(nmvpnservice_DATA) $(appdata_DATA) *~
46 DISTCLEANFILES = intltool-extract intltool-merge intltool-update
47
48 ACLOCAL_AMFLAGS = -I m4