Source

sbbuilder / Makefile

# Makefile for sbbuilder

PREFIX?=/usr
MANDIR?=$(PREFIX)/man
DESTDIR?=
INSTALL=/usr/bin/install
PERLDOC=/usr/bin/perldoc

all:
	-$(PERLDOC) -oman -d sbbuilder.1 sbbuilder

install:
	$(INSTALL) -c -D -m 0755 sbbuilder $(DESTDIR)$(PREFIX)/bin/sbbuilder
	mkdir -p $(DESTDIR)$(PREFIX)/share/sbb/template
	$(INSTALL) -c -m 0755 templates/* $(DESTDIR)$(PREFIX)/share/sbb/template
	-$(INSTALL) -c -D -m 0644 sbbuilder.1 $(DESTDIR)$(MANDIR)/1/sbbuilder.1

clean:
	-rm -f sbbuilder.1