Subversion Repositories pub

Compare Revisions

Ignore whitespace Rev 694 → Rev 699

/relevation/trunk/GNUmakefile
25,6 → 25,8
ifeq ($(findstring dist-packages,$(PYTHONROOT)),dist-packages)
INSTALL_LAYOUT=--install-layout=deb
endif
# Set to something from the command-line to allow packaging of pre-releases
force:=
 
all: $(PKG).1
@echo
40,6 → 42,8
@echo "# distclean"
@echo "# testman Displays compiled manpage"
@echo "# test_min_python Find min. Python version required"
@echo "# "
@echo "# append force=1 to allow packaging pre-releases"
@echo "########################################################"
@echo
 
109,6 → 113,10
setup.py: devtools/setup.py.in
sed 's/@VERSION@/$(VERSION)/g' < $< > $@
 
egg: setup.py
cat $< | sed -e 's/scripts=/py_modules=["__main__"],scripts=/' \
-e 's/from distutils.core/from setuptools/' | python - bdist_egg
 
$(PKG).1: manpage_source.sgml
docbook-to-man $< > $@
 
120,7 → 128,7
 
is_release:
# Only allowed if RELEASE
bash devtools/relver.bash | grep -q -v 'DEBUG'
test -n "$(force)" || bash devtools/relver.bash | grep -q -v 'DEBUG'
 
package_copy:
@# Make a temporary copy to package
127,7 → 135,7
-mkdir $(PKGVER)
tar c . $(TAR_EXCLUDES) | ( cd $(PKGVER) && tar x )
 
$(PKG).spec: $(PKG).spec.in
$(PKG).spec: devtools/$(PKG).spec.in
test -n "$(VERSION)" # Version (=$(VERSION)) must be defined
@echo "[creating $@]"
@cat "$<" | sed -e 's/@VERSION@/$(VERSION)/g' \