diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-12-13 19:40:42 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-12-13 19:40:42 +0100 |
commit | 5b0de797fd0249067fe06bf193cc22de50b4b47a (patch) | |
tree | 23fad1eadd6339870a71471ac63b27ba83681850 /Makefile | |
download | rnl-5b0de797fd0249067fe06bf193cc22de50b4b47a.tar.gz rnl-5b0de797fd0249067fe06bf193cc22de50b4b47a.tar.xz rnl-5b0de797fd0249067fe06bf193cc22de50b4b47a.zip |
initial import of rnl
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..ec1a17c --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +ALL=rnl + +CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings + +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: $(ALL) + +README: rnl.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: |