From bea781c97b383c90df7e201d27709017f680374b Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 8 Aug 2008 07:27:36 +0000 Subject: Fixed many major bugs (all of which were expected based on the way we mass converted all the `case' blocks. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@64 abc39116-655e-4be6-ad55-d661dc543056 --- Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7bed2a9..732fcdb 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,9 @@ # Licensed under the GNU Public License. # -PY = $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/') +#. Bug in python2.4 PyString_FromFormat that results in not interpreting printf style formatting with %u and %lu. +#PY = $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/') +PY = python2.5 CC = gcc CFLAGS = -fno-strict-aliasing -D_XOPEN_SOURCE=600 @@ -51,11 +53,8 @@ PROGRAMS != echo dmidecode ; test `uname -m 2>/dev/null` != ia64 && echo biosdec all : $(PROGRAMS) module module: - python setup.py build + $(PY) setup.py build -install: - python setup.py install - python -c 'import dmidecode' # @@ -119,7 +118,7 @@ catsprintf.o: catsprintf.c catsprintf.h strip : $(PROGRAMS) strip $(PROGRAMS) -install : install-bin install-man install-doc +install : install-module install-bin install-man install-doc uninstall : uninstall-bin uninstall-man uninstall-doc @@ -141,6 +140,9 @@ uninstall-man : for program in $(PROGRAMS) ; do \ $(RM) $(DESTDIR)$(man8dir)/$$program.8 +install-module: + $(PY) setup.py install + install-doc : $(INSTALL_DIR) $(DESTDIR)$(docdir) $(INSTALL_DATA) README $(DESTDIR)$(docdir) @@ -151,7 +153,7 @@ uninstall-doc : $(RM) -r $(DESTDIR)$(docdir) clean : - python setup.py clean + $(PY) setup.py clean $(RM) *.so *.o $(PROGRAMS) core rm -rf build -- cgit