aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d4f0cb5..c0fe2be 100644
--- a/Makefile
+++ b/Makefile
@@ -6,15 +6,15 @@ VERSION = 0.1.0
NAME = gistatic
manpages = \
- doc/gistatic.1 \
+ doc/$(NAME).1 \
-all: target/release/gistatic
+all: target/release/$(NAME)
-target/release/gistatic:
+target/release/$(NAME):
cargo build --release
check: all
- cargo test
+ cargo test --release
dev-check: check
sh aux/assert-shellcheck.sh
@@ -26,7 +26,7 @@ do_subst = sed \
-e 's:[@]DATE[@]:$(DATE):g'
install: all
- install -m 755 -D target/release/gistatic $(DESTDIR)$(PREFIX)/bin/gistatic
+ install -m 755 -D target/release/$(NAME) $(DESTDIR)$(PREFIX)/bin/$(NAME)
for m in $(manpages); do \
n=$${m##*.}; \
mkdir -p $(DESTDIR)$(MANPREFIX)/man$$n; \
@@ -34,7 +34,7 @@ install: all
done
uninstall:
- rm -f $(DESTDIR)$(PREFIX)/bin/gistatic
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME)
for m in $(manpages); do rm -f $(DESTDIR)$(MANPREFIX)/man$${m##*.}/`basename $${m%%.*}`.$${m##*.}.gz; done
clean:
@@ -45,7 +45,7 @@ dist:
sh aux/workflow/dist.sh $(DATE) $(VERSION) $(NAME)
public: README.md TODOs.md CHANGELOG.md
- sh aux/workflow/public.sh gistatic $(NAME) public-inbox
+ sh aux/workflow/public.sh $(NAME) $(NAME) public-inbox
for m in $(manpages); do groff -m man -Thtml $$m > public/`basename $$m`.html; done
.PHONY: all clean check dev-check dist install uninstall