Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
saltedcoffii committed Oct 17, 2021
1 parent f6b1270 commit 5a055f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
INSTALL ?= install
HELP2MAN ?= help2man

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man

COMPRESSDOC := src/compressdoc
COMPRESSDOC.1 := doc/compressdoc.1

all:
$(HELP2MAN) $(COMPRESSDOC) -o $(COMPRESSDOC.1)

install: all
$(INSTALL) -Dm755 $(COMPRESSDOC) $(DESTDIR)$(BINDIR)/compressdoc
$(INSTALL) -Dm644 $(COMPRESSDOC.1) $(DESTDIR)$(MANDIR)/man1/compressdoc.1

uninstall:
rm -r $(DESTDIR)$(BINDIR)/compressdoc

clean:
rm -r $(COMPRESSDOC.1)

.PHONY: all clean install
Empty file added doc/.stub
Empty file.

0 comments on commit 5a055f1

Please sign in to comment.