From 0a995f4373614ea6dfc04632bd232bccce2f61ee Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Tue, 17 Nov 2020 12:54:15 +0100 Subject: Fix install rule --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 998d513..6517c79 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,17 @@ -TEMPLATES := $(wildcard templates/*) -FONTS := $(wildcard fonts/*) +EPUB_TPL := $(wildcard templates/epub/*) +STATIC_TPL := $(wildcard templates/static/*) +FONTS := $(wildcard fonts/*) release: @cargo build --release install: release @sudo -k # always ask user password - @sudo install -dv /usr/local/share/celtchar/templates \ + @sudo install -dv /usr/local/share/celtchar/templates/epub \ + /usr/local/share/celtchar/templates/static \ /usr/local/share/celtchar/fonts - @sudo install -v ${TEMPLATES} /usr/local/share/celtchar/templates + @sudo install -v ${EPUB_TPL} /usr/local/share/celtchar/templates/epub + @sudo install -v ${STATIC_TPL} /usr/local/share/celtchar/templates/static @sudo install -v ${FONTS} /usr/local/share/celtchar/fonts @sudo install -v target/release/celtchar /usr/local/bin/celtchar -- cgit v1.2.3