Subversion Repositories pub

Compare Revisions

No changes between revisions

Ignore whitespace Rev 198 → Rev 199

/relevation/trunk/Makefile
1,3 → 1,4
# $Id$
 
prefix:=/usr/local
DESTDIR:=
15,15 → 16,20
clean:
-$(RM) *.pyc *.pyo manpage.html manpage.pdf
 
distclean: clean
-$(RM) $(PKGVER).tar.gz $(PKGVER).zip
-$(RM) -r dist build
 
install:
install -D -m755 $(PKG).py $(DESTDIR)$(prefix)/bin/$(PKG)
install -D -m644 $(PKG).1 $(DESTDIR)$(prefix)/share/man/man1/$(PKG).1
install -D -m755 gui.py $(DESTDIR)$(prefix)/bin/gui-relevation
 
uninstall:
-$(RM) $(DESTDIR)$(prefix)/$(PKG) $(DESTDIR)$(prefix)/share/man/man1/$(PKG).1
-$(RM) $(DESTDIR)$(prefix)/bin/$(PKG) $(DESTDIR)$(prefix)/bin/gui-relevation $(DESTDIR)$(prefix)/share/man/man1/$(PKG).1
-rmdir --parents $(DESTDIR)$(prefix)/bin
 
$(PKG).1: manpage.sgml
$(PKG).1: manpage_source.sgml
docbook-to-man $< > $@
 
manpage.html: $(PKG).1
32,12 → 38,25
manpage.pdf: $(PKG).1
man -t ./$(PKG).1 | ps2pdf14 - > $@
 
TAR_EXCLUDES=--exclude-vcs --exclude=$(PKGVER) --exclude=*.pyo --exclude=*.pyc
dist: clean
TAR_EXCLUDES=--exclude-vcs --exclude=$(PKGVER) \
--exclude=*.swp --exclude=*.pyo --exclude=*.pyc
 
is_release:
# Only allowed if RELEASE
echo -e 'import relevation\nif not relevation.RELEASE:\n\traise Exception("RELEASE is False")' | python -
-$(RM) $(PKGVER).tar.gz
 
package_copy:
@# Make a temporary copy to package
-mkdir $(PKGVER)
tar c . $(TAR_EXCLUDES) | ( cd $(PKGVER) && tar x )
tar zcvf $(PKGVER).tar.gz $(PKGVER)
 
dist: is_release distclean package_copy
tar cv $(PKGVER) | gzip -c9 > $(PKGVER).tar.gz
-$(RM) -r $(PKGVER)
 
zip: is_release distclean manpage.pdf manpage.html package_copy
zip -9 -r $(PKGVER).zip $(PKGVER)
-$(RM) -r $(PKGVER)
 
exe:
python setup_py2exe.py py2exe
Property changes:
Added: svn:keywords
+Rev Id Date
\ No newline at end of property