diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f252c8e --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ + +GUILE_SUPPORT = $(filter $(.FEATURES),guile) + +ifeq ($(GUILE_SUPPORT),) + $(error No guile support bailing out) +endif + +GUILE_SITE_CCACHE=$(guile (%site-ccache-dir)) +PREFIX ?= +PREFIX_BIN ?= $(PREFIX)/usr/bin +install: + @install -d $(PREFIX_BIN) $(PREFIX)$(GUILE_SITE_CCACHE) + @install -T rofi-pinentry.scm $(PREFIX_BIN)/pinentry-rofi + @guild compile rofi-pinentry.scm -o $(PREFIX)$(GUILE_SITE_CCACHE)/pinentry-rofi.go |