nm: Automatically determine path to the auth dialog
[strongswan.git] / src / frontends / gnome / Makefile.am
index 1184711..2fc793e 100644 (file)
@@ -2,26 +2,30 @@ AUTOMAKE_OPTIONS = foreign
 
 SUBDIRS = properties auth-dialog po
 
-dbusservicedir = $(sysconfdir)/dbus-1/system.d
-dbusservice_DATA = nm-strongswan-service.conf
-
 nmvpnservicedir = $(sysconfdir)/NetworkManager/VPN
 nmvpnservice_DATA = nm-strongswan-service.name
 
 @INTLTOOL_DESKTOP_RULE@
 
+appdatadir = $(datadir)/appdata
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = NetworkManager-strongswan.appdata.xml.in
+@INTLTOOL_XML_RULE@
+
 nm-strongswan-service.name: $(srcdir)/nm-strongswan-service.name.in
        $(AM_V_GEN) \
-       sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|' \
+       sed -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|' \
            -e 's|[@]CHARON[@]|$(charon)|' $< >$@
 
-EXTRA_DIST = nm-strongswan-service.name.in \
-    $(dbusservice_DATA)  \
+EXTRA_DIST = \
+    nm-strongswan-service.name.in  \
+    $(appdata_in_files)  \
+    $(appdata_DATA)      \
     intltool-extract.in  \
     intltool-merge.in    \
     intltool-update.in
 
-CLEANFILES = $(nmvpnservice_DATA) *~
+CLEANFILES = $(nmvpnservice_DATA) $(appdata_DATA) *~
 DISTCLEANFILES = intltool-extract intltool-merge intltool-update
 
 ACLOCAL_AMFLAGS = -I m4