diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-03-14 23:45:39 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-03-14 23:45:39 +0100 |
commit | 1d608c6483f589f8da48bdc12e423721aca94c4b (patch) | |
tree | 1b76523501daf867df4c80c0b8c707ca613a6ecf /Makefile | |
download | htping-1d608c6483f589f8da48bdc12e423721aca94c4b.tar.gz htping-1d608c6483f589f8da48bdc12e423721aca94c4b.tar.xz htping-1d608c6483f589f8da48bdc12e423721aca94c4b.zip |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..11ebf16 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +ALL=htping + +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: $(ALL) + +htping: + go build + +clean: FRC + rm -f $(ALL) + +install: FRC all + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 + install -m0755 $(ALL) $(DESTDIR)$(BINDIR) + install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1 + +README: htping.1 + mandoc -Tutf8 $< | col -bx >$@ + +FRC: |