Added .prettierignore to avoid removing tabs in man page.

This commit is contained in:
TheDarkBug 2021-04-18 23:51:32 +02:00
parent 284a85485d
commit c802f4041f
5 changed files with 117 additions and 93 deletions

View file

@ -2,18 +2,19 @@ NAME = uwufetch
FILES = uwufetch.c
CFLAGS = -O3
CFLAGS_DEBUG = -Wall -Wextra
LIBS = -ljson-c
PREFIX = /usr/bin
CC = cc
MAN_COMPILER = pandoc
build: $(FILES)
$(CC) $(CFLAGS) -o $(NAME) $(FILES)
$(CC) $(CFLAGS) $(LIBS) -o $(NAME) $(FILES)
$(MAN_COMPILER) $(NAME)_man.md -st man -o $(NAME).1
@gzip $(NAME).1
debug:
@clear
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
$(CC) $(CFLAGS_DEBUG) $(LIBS) -o $(NAME) $(FILES)
./uwufetch
install:
@ -36,6 +37,7 @@ termux_uninstall:
rm -rf $(DESTDIR)/data/data/com.termux/files$(PREFIX)/$(NAME)
rm -rf $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/
man_debug: build
man_debug:
$(MAN_COMPILER) $(NAME)_man.md -st man -o $(NAME).1
@clear
@man -P cat ./uwufetch.1