From 1b1d414c67b7351762233f9f57b5a2afddd44ce2 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 29 Sep 2021 12:03:07 -0300 Subject: Makefile: Also install and uninstall en.sh translations --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd836f5..b4f60ce 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,7 @@ manpages = $(manpages.in:.in=) all: src/git-permalink src/load-locale-messages.sh $(manpages) + check: all sh tests/cli-opts.sh sh tests/remotes.sh @@ -50,24 +51,25 @@ clean: install: all mkdir -p \ - $(DESTDIR)$(BINDIR) \ - $(DESTDIR)$(LOCALEDIR) \ - $(DESTDIR)$(LIBEXECDIR)/$(NAME) - cp src/git-permalink $(DESTDIR)$(BINDIR) - for l in $(TRANSLATIONS) $(CONTRIBLANGS); do \ + $(DESTDIR)$(BINDIR) \ + $(DESTDIR)$(LIBEXECDIR)/$(NAME) \ + $(DESTDIR)$(LOCALEDIR) + cp src/$(NAME) $(DESTDIR)$(BINDIR) + cp src/load-locale-messages.sh $(DESTDIR)$(LIBEXECDIR)/$(NAME) + for l in $(TRANSLATIONS) en $(CONTRIBLANGS); do \ mkdir -p $(DESTDIR)$(LOCALEDIR)/$$l/LC_MESSAGES; \ cp src/locale/$$l.sh \ $(DESTDIR)$(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).sh; \ done - cp src/load-locale-messages.sh $(DESTDIR)$(LIBEXECDIR)/$(NAME) sh doc/manpages.sh -ip $(DESTDIR)$(MANDIR) $(manpages) uninstall: - rm -f $(DESTDIR)$(BINDIR)/git-permalink - for l in $(TRANSLATIONS) $(CONTRIBLANGS); do \ + rm -f \ + $(DESTDIR)$(BINDIR)/$(NAME) \ + $(DESTDIR)$(LIBEXECDIR)/$(NAME)/load-locale-messages.sh + for l in $(TRANSLATIONS) en $(CONTRIBLANGS); do \ rm -f $(DESTDIR)$(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).sh; \ done - rm -f $(DESTDIR)$(LIBEXECDIR)/$(NAME)/load-locale-messages.sh sh doc/manpages.sh -up $(DESTDIR)$(MANDIR) $(manpages) -- cgit v1.2.3