gmid/Makefile
Omar Polo 10fed44c79
improve make error message if etags is not found
the ‘|| true’ idiom leads to better make error.  Now the ‘-’ becomes a
bit redundant tho…
2020-10-07 17:59:55 +02:00

20 lines
287 B
Makefile

CC = cc
CFLAGS = -Wall -Wextra -g
LDFLAGS = -ltls
.PHONY: all clean
all: gmid TAGS README.md
gmid: gmid.o
${CC} gmid.o -o gmid ${LDFLAGS}
TAGS: gmid.c
-etags gmid.c || true
README.md: gmid.1
mandoc -Tmarkdown gmid.1 | sed -e '1d' -e '$$d' > README.md
clean:
rm -f gmid.o gmid