diff options
author | Thomas Letan <lthms@soap.coffee> | 2020-11-17 12:54:15 +0100 |
---|---|---|
committer | Thomas Letan <lthms@soap.coffee> | 2020-11-17 12:54:15 +0100 |
commit | 0a995f4373614ea6dfc04632bd232bccce2f61ee (patch) | |
tree | 403c2955c378955e2b4bfff103656f55b3707052 | |
parent | Update templates (diff) |
Fix install rule
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |