Skip to content

Commit

Permalink
dist: install symlinks as part of make install
Browse files Browse the repository at this point in the history
Closes: containers#1468

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed May 29, 2024
1 parent f1d0745 commit 9538b32
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,22 @@ if HAVE_MD2MAN
$(MD2MAN) -in $(abs_srcdir)/krun.1.md -out krun.1
endif HAVE_MD2MAN

install-exec-hook:
if ENABLE_KRUN
$(LN_S) crun$(EXEEXT) $(DESTDIR)$(bindir)/krun$(EXEEXT)
endif
if ENABLE_WASM
$(LN_S) crun$(EXEEXT) $(DESTDIR)$(bindir)/crun-wasm$(EXEEXT)
endif

uninstall-hook:
if ENABLE_KRUN
rm -f $(DESTDIR)$(bindir)/krun$(EXEEXT)
endif
if ENABLE_WASM
rm -f $(DESTDIR)$(bindir)/crun-wasm$(EXEEXT)
endif

generate-man: crun.1 krun.1

sync:
Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ AC_CONFIG_MACRO_DIR([m4])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
AC_CONFIG_SRCDIR([src/crun.c])

AC_PROG_LN_S

LT_INIT([disable-shared])

AM_INIT_AUTOMAKE([1.11.2 -Wno-portability foreign tar-ustar no-dist-gzip dist-xz subdir-objects])
Expand Down Expand Up @@ -128,6 +130,8 @@ AS_IF([test "x$with_libkrun" = "xyes"], AC_CHECK_HEADERS([libkrun.h], AC_DEFINE(

AM_CONDITIONAL([ENABLE_KRUN], [test "x$with_libkrun" = xyes])

AM_CONDITIONAL([ENABLE_WASM], [test "x$with_wasmer" = xyes -o "x$with_wasmedge" = xyes -o "x$with_wasmtime" = xyes])

dnl include support for spin (EXPERIMENTAL)
AC_ARG_WITH([spin], AS_HELP_STRING([--with-spin], [build with spin support]))
AS_IF([test "x$with_spin" = "xyes"], AC_DEFINE([HAVE_SPIN], 1, [Define if spin is available]))
Expand Down

0 comments on commit 9538b32

Please sign in to comment.