8 BINDIR ?
= $(PREFIX
)/bin
9 SHAREDIR ?
= $(PREFIX
)/share
10 MANDIR ?
= $(PREFIX
)/share
/man
12 CFLAGS
+= -std
=c99
-D_POSIX_C_SOURCE
=200809L -D_XOPEN_SOURCE
=1
15 CFLAGS
+= -pedantic
-Wall
-Wextra
-Werror
22 $(CC
) -o
$@
$^
$(LDFLAGS
)
25 $(CC
) $(CFLAGS
) -c
-o
$@
$<
29 find
-name
'*.o' -delete
34 mkdir
-p
$(DESTDIR
)$(BINDIR
)
35 cp
-f
$(PROG
) $(DESTDIR
)$(BINDIR
)/
36 mkdir
-p
$(DESTDIR
)$(MANDIR
)
37 cp
-f
$(PROG
).1 $(DESTDIR
)$(MANDIR
)/
41 cd
$(DESTDIR
)$(BINDIR
) && rm -f
$(PROG
)
42 cd
$(DESTDIR
)$(MANDIR
) && rm -f
$(PROG
).1