aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-02-19 20:07:32 -0300
committerEuAndreh <eu@euandre.org>2022-02-19 20:07:32 -0300
commit9f91c6ac59299519ad3abbae0e2511590511088d (patch)
tree2fd26a6d61f5a9d85a396ef0d76e85d015fb5234 /Makefile
parentMakefile: Include append $(NAME) to the definition of $(LIBEXECDIR) (diff)
downloadtd-9f91c6ac59299519ad3abbae0e2511590511088d.tar.gz
td-9f91c6ac59299519ad3abbae0e2511590511088d.tar.xz
src/td.in: Add -S option to dump suggested CSS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8d57c45..336c6be 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ LIBEXECDIR = $(PREFIX)/libexec/$(NAME)
SHAREDIR = $(PREFIX)/share
LOCALEDIR = $(SHAREDIR)/locale
MANDIR = $(SHAREDIR)/man
+DATADIR = $(SHAREDIR)/$(NAME)
.SUFFIXES:
@@ -23,6 +24,7 @@ MANDIR = $(SHAREDIR)/man
-e 's:@NAME@:$(NAME):g' \
-e 's:@LIBEXECDIR@:$(LIBEXECDIR):g' \
-e 's:@LOCALEDIR@:$(LOCALEDIR):g' \
+ -e 's:@DATADIR@:$(DATADIR):g' \
< $< > $@
if [ -x $< ]; then chmod +x $@; fi
@@ -91,7 +93,8 @@ install: all
mkdir -p \
$(DESTDIR)$(BINDIR) \
$(DESTDIR)$(LIBEXECDIR) \
- $(DESTDIR)$(LOCALEDIR)
+ $(DESTDIR)$(LOCALEDIR) \
+ $(DESTDIR)$(DATADIR)
cp src/$(NAME) $(DESTDIR)$(BINDIR)
cp src/locale/load-messages.sh $(DESTDIR)$(LIBEXECDIR)
for l in $(TRANSLATIONS) en $(CONTRIBLANGS); do \
@@ -100,12 +103,14 @@ install: all
src/locale/$$l.sh src/locale/*.$$l.txt \
$(DESTDIR)$(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME); \
done
+ cp src/style.css $(DESTDIR)$(DATADIR)
sh doc/manpages.sh -ip $(DESTDIR)$(MANDIR) $(manpages)
uninstall:
rm -f \
- $(DESTDIR)$(BINDIR)/$(NAME) \
- $(DESTDIR)$(LIBEXECDIR)/load-messages.sh
+ $(DESTDIR)$(BINDIR)/$(NAME) \
+ $(DESTDIR)$(LIBEXECDIR)/load-messages.sh \
+ $(DESTDIR)$(DATADIR)/style.css
for l in $(TRANSLATIONS) en $(CONTRIBLANGS); do \
rm -f $(DESTDIR)$(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME)/*; \
done