diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-14 19:39:25 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-14 19:39:25 +0200 |
commit | 8bc6a711fbbad02abcf98f441330be19627ce3a0 (patch) | |
tree | 4a54b010d4d1fcb2955ae4049b893da5fc3f106f /Makefile | |
download | fail-8bc6a711fbbad02abcf98f441330be19627ce3a0.tar.gz fail-8bc6a711fbbad02abcf98f441330be19627ce3a0.tar.xz fail-8bc6a711fbbad02abcf98f441330be19627ce3a0.zip |
initial commit of fail
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7dca2f3 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +ALL=fail + +CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings + +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: $(ALL) + +README: fail.1 + mandoc -Tutf8 $< | col -bx >$@ + +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 + +FRC: |