Subversion Repositories pub

Compare Revisions

Ignore whitespace Rev 128 → Rev 129

/relevation/branches/0.2/Makefile
2,21 → 2,31
prefix:=/usr/local
DESTDIR:=
 
BIN=relevation
PKG=relevation
VERSION=$(shell echo -e 'import relevation\nprint relevation.__version__' | python -)
PKGVER=$(PKG)-$(VERSION)
 
all: $(BIN).1
 
all: $(PKG).1
 
clean:
-$(RM) $(BIN).pyc
-$(RM) $(PKG).pyc
 
install:
install -D -m755 $(BIN).py $(DESTDIR)$(prefix)/bin/$(BIN)
install -D -m644 $(BIN).1 $(DESTDIR)$(prefix)/share/man/man1/$(BIN).1
install -D -m755 $(PKG).py $(DESTDIR)$(prefix)/bin/$(PKG)
install -D -m644 $(PKG).1 $(DESTDIR)$(prefix)/share/man/man1/$(PKG).1
 
uninstall:
-$(RM) $(DESTDIR)$(prefix)/$(BIN)
-$(RM) $(DESTDIR)$(prefix)/$(PKG)
-rmdir --parents $(DESTDIR)$(prefix)/bin
 
$(BIN).1: manpage.sgml
$(PKG).1: manpage.sgml
docbook-to-man $< > $@
 
TAR_EXCLUDES=--exclude=debian --exclude-vcs --exclude=$(PKGVER)
dist:
-$(RM) $(PKGVER).tar.gz
-mkdir $(PKGVER)
tar c . $(TAR_EXCLUDES) | ( cd $(PKGVER) && tar x )
tar zcvf $(PKGVER).tar.gz $(PKGVER)
-$(RM) -r $(PKGVER)