Commit be47f4c9 authored by Colomban Wendling's avatar Colomban Wendling

OVCCGtk: fix installation of the icons link

Now we don't install other data next to the link, we must make sure the
directory is created.
parent ab17ab5d
...@@ -15,6 +15,7 @@ ovccgtkdatadir="${datadir}/ovcc-gtk/" ...@@ -15,6 +15,7 @@ ovccgtkdatadir="${datadir}/ovcc-gtk/"
AC_SUBST([ovccgtkdatadir]) AC_SUBST([ovccgtkdatadir])
# Checks for programs. # Checks for programs.
AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_PROG_SED AC_PROG_SED
AC_PROG_CC AC_PROG_CC
......
...@@ -8,7 +8,10 @@ dist_noinst_DATA = ovccgtk-application.ui ...@@ -8,7 +8,10 @@ dist_noinst_DATA = ovccgtk-application.ui
# exists in case we aren't installed in a default prefix where icons are # exists in case we aren't installed in a default prefix where icons are
# already searched for # already searched for
install-data-hook: install-data-hook:
( cd "$(pkgdatadir)" && $(RM) icons && $(LN_S) ../icons icons ) ( $(INSTALL) -d "$(pkgdatadir)" && \
cd "$(pkgdatadir)" && \
$(RM) icons && \
$(LN_S) ../icons icons )
uninstall-hook: uninstall-hook:
( test ! -d "$(pkgdatadir)" || ( cd "$(pkgdatadir)" && $(RM) icons ) ) ( test ! -d "$(pkgdatadir)" || ( cd "$(pkgdatadir)" && $(RM) icons ) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment