diff options
author | Vincent Untz <vuntz@gnome.org> | 2011-12-14 16:51:22 +0100 |
---|---|---|
committer | Vincent Untz <vuntz@gnome.org> | 2011-12-14 16:51:22 +0100 |
commit | ead67d72868bdf06592303583cbecaba2dda4666 (patch) | |
tree | b6b65036d18b3a382b8e94828a0f9d97ebf9c470 | |
parent | b0d4472c9af1d6fa008954988873c1be7104cdc2 (diff) | |
download | desktop-file-utils-ead67d72868bdf06592303583cbecaba2dda4666.tar.gz |
build: Create a desktop-file-edit symlink to desktop-file-install
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/Makefile.am | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 975c6c9..13ae180 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_MACRO_DIR([m4]) AM_CONFIG_HEADER(config.h) +AC_PROG_LN_S AC_PROG_CC if test "x$GCC" = "xyes"; then diff --git a/src/Makefile.am b/src/Makefile.am index 8d35066..3ebf03d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -36,4 +36,13 @@ desktop_file_validate_LDADD = $(DESKTOP_FILE_UTILS_LIBS) desktop_file_install_LDADD = $(DESKTOP_FILE_UTILS_LIBS) update_desktop_database_LDADD = $(DESKTOP_FILE_UTILS_LIBS) +install-exec-hook: desktop-file-install + cd $(DESTDIR)$(bindir) && \ + rm -f desktop-file-edit && \ + $(LN_S) -f desktop-file-install desktop-file-edit + +uninstall-hook: + cd $(DESTDIR)$(bindir) && \ + rm -f desktop-file-edit + -include $(top_srcdir)/git.mk |