adding POD style doc and Makefile

This commit is contained in:
troyengel 2014-11-24 15:58:38 -06:00
parent 71ff0bf186
commit 74886da222
3 changed files with 335 additions and 0 deletions

33
Makefile Normal file
View file

@ -0,0 +1,33 @@
# petrified - a bash client to update dynamic DNS at freedns.afraid.org
VERSION := $(shell grep '^\#\# Version:' petrified | cut -d' ' -f3)
PREFIX ?= /usr/local
MANPREFIX ?= $(PREFIX)/share/man
ETCPREFIX ?= /etc
MANPAGES = \
petrified.1
all: doc
doc: $(MANPAGES)
petrified.1: README.pod
pod2man -s 1 -c "Petrified Manual" -n "PETRIFIED" \
-r "petrified $(VERSION)" $< $@
install: all
install -Dm0755 petrified "$(DESTDIR)$(PREFIX)/bin/petrified"
install -Dm0644 petrified.1 "$(DESTDIR)$(MANPREFIX)/man1/petrified.1"
install -Dm0600 petrified.conf "$(DESTDIR)$(ETCPREFIX)/petrified.conf"
uninstall:
$(RM) "$(DESTDIR)$(PREFIX)/bin/petrified" \
"$(DESTDIR)$(MANPREFIX)/man1/petrified.1" \
"$(DESTDIR)$(ETCPREFIX)/petrified.conf"
clean:
$(RM) $(MANPAGES)
.PHONY: clean doc install uninstall