mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-30 06:21:19 +02:00
10fed44c79
the ‘|| true’ idiom leads to better make error. Now the ‘-’ becomes a bit redundant tho…
20 lines
287 B
Makefile
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
|