Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 543 Bytes
VERSION=0.1.6+git
NAME=simplebackup-$(VERSION)
TAR=$(NAME).tar.gz
SCRIPTS=expirebackups simplebackup
MANPAGES=expirebackups.1 simplebackup.1 simplebackup.conf.5
DOCS=README COPYING HISTORY
EXAMPLES=simplebackup.conf
FILES=$(SCRIPTS) $(MANPAGES) $(DOCS) $(EXAMPLES)
all: $(MANPAGES)
clean:
rm -f $(MANPAGES)
rm -f *~
dist: clean all
rm -rf $(NAME)
mkdir $(NAME)
cp $(FILES) $(NAME)
tar -czvf $(TAR) $(NAME)
rm -rf $(NAME)
%.1: %.in.1
sed s/%%%VERSION%%%/$(VERSION)/g $< > $@
%.5: %.in.5
sed s/%%%VERSION%%%/$(VERSION)/g $< > $@