Adapt Makefile to use without pandoc

This commit is contained in:
llathasa-veleth 2021-08-27 21:30:54 +03:00
parent 2485577d77
commit 49d9cb0523

View file

@ -18,8 +18,7 @@ else ifeq ($(shell uname), FreeBSD)
MANDIR = /usr/share/man/man1 MANDIR = /usr/share/man/man1
endif endif
CC = cc CC = cc
MAN_COMPILER = pandoc
build: $(FILES) build: $(FILES)
@ -51,10 +50,8 @@ termux_uninstall:
rm -rf $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/ rm -rf $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/
man: man:
$(MAN_COMPILER) $(NAME)_man.md -st man -o $(NAME).1 gzip --keep $(NAME).1
@gzip $(NAME).1
man_debug: man_debug:
$(MAN_COMPILER) $(NAME)_man.md -st man -o $(NAME).1
@clear @clear
@man -P cat ./uwufetch.1 man -P cat ./uwufetch.1