-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 848 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all: README
test:
(cd regress ; make)
README: htmlescape.3
echo " --------------------------------------------------------------------" > t
echo " " >> t
echo " The man page below defines the interface for semantic versioning." >> t
echo " " >> t
echo " A participant in the clibs project." >> t
echo " See https://github.com/clibs/clib/wiki/Packages for more info." >> t
echo " " >> t
echo " $$(date)" >> t
echo " --------------------------------------------------------------------" >> t
@# Github won't render this in the browser.
@# sed zaps any backspace characters (^H)
@# and the one before it.
groff -Tascii -man $? | sed -e 's/.//g' >> t
mv t README
MANDIR=/usr/share/man/man3
man: ${MANDIR}/htmlescape.3
${MANDIR}/%.3: %.3
sudo cp $? $@