summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-23 11:47:10 -0300
committerEuAndreh <eu@euandre.org>2024-10-23 11:47:10 -0300
commit395d9ebfc8423cd512355dcc980d9b367256579f (patch)
treed0a26752bd6f97c5cb410652dc02c2fd2cbc1c92
parentsrc/content/style.css: Increase contrast of <code> background (diff)
downloadpapo.im-395d9ebfc8423cd512355dcc980d9b367256579f.tar.gz
papo.im-395d9ebfc8423cd512355dcc980d9b367256579f.tar.xz
Makefile: Install under $(PREFIX)/share/html over $(PREFIX)/share/doc
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index af212e4..13e6d79 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ SHAREDIR = $(PREFIX)/share
LOCALEDIR = $(SHAREDIR)/locale
MANDIR = $(SHAREDIR)/man
DOCDIR = $(SHAREDIR)/doc/$(NAME)
+HTMLDIR = $(SHAREDIR)/html/$(NAME)
EXEC = ./
## Where to store the installation. Empty by default.
DESTDIR =
@@ -150,7 +151,7 @@ install: all
'$(DESTDIR)$(SRCDIR)' \
for f in $(contents) $(static-contents) `cat $(sources.snippets)`; do \
- dir='$(DESTDIR)$(DOCDIR)'/"`dirname "$${f#src/content/}"`"; \
+ dir='$(DESTDIR)$(HTMLDIR)'/"`dirname "$${f#src/content/}"`"; \
mkdir -p "$$dir"; \
cp -P "$$f" "$$dir"; \
done
@@ -166,14 +167,14 @@ install: all
uninstall:
rm -rf \
'$(DESTDIR)$(SRCDIR)' \
- '$(DESTDIR)$(DOCDIR)' \
+ '$(DESTDIR)$(HTMLDIR)' \
PORT = 3333
## Run it locally.
run:
- serve -n -p $(PORT) -d '$(DESTDIR)$(DOCDIR)'
+ serve -n -p $(PORT) -d '$(DESTDIR)$(HTMLDIR)'
ALWAYS: