aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Salomonsson <plattfot@gmail.com>2018-11-04 19:33:07 -0800
committerFredrik Salomonsson <plattfot@gmail.com>2018-11-04 19:33:07 -0800
commitcaba3ae1c635310c1114caedb54a45d48ec0b93a (patch)
tree293a50ac503a295213d1ba89d4d1f72ab5367b96
parent84ff3e3ff9fb80b5649e45aba1c5133eebc15687 (diff)
downloadpinentry-rofi-0.1.0.tar.gz
Simple makefile to install0.1.0
-rw-r--r--Makefile14
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