diff options
author | Thomas Voss <mail@thomasvoss.com> | 2021-10-12 17:59:37 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2021-10-12 17:59:37 +0200 |
commit | 11a2560513e114ae30904f0598c4732aeac1972a (patch) | |
tree | 15643f492e57cae1e5a9a858f2f13b3fa5633335 /Makefile |
[Meta] Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e038050 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.POSIX: + +MANDIR = /usr/share/man/man1 +target = mpaste + +all: ${target} +${target}: macros.m4 mpaste.go + m4 macros.m4 mpaste.go >tmp.go + go build tmp.go + mv tmp ${target} + rm tmp.go + +docs: + >/dev/null command -v gzip && gzip -c9 mpaste.1 >${MANDIR}/mpaste.1.gz || \ + cp mpaste.1 ${MANDIR} + +clean: + rm -rf ${target} tmp.go counter files/ +.PHONY: clean |