summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-08-07 12:32:39 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-08-07 12:32:39 +0000
commite5ac5d6d7ca49e1280fe498c373d95843412419d (patch)
treedc1274a73f7c83eeaa354fd240e62e01539fabe1 /Makefile
parentfe54050ef08fe0273ac4f244d62d1259f0787ab8 (diff)
downloadpython-dmidecode-e5ac5d6d7ca49e1280fe498c373d95843412419d.tar.gz
python-dmidecode-e5ac5d6d7ca49e1280fe498c373d95843412419d.tar.xz
python-dmidecode-e5ac5d6d7ca49e1280fe498c373d95843412419d.zip
Cleaned up a little.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@63 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5062792..7bed2a9 100644
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,8 @@ CFLAGS += -I/usr/include/$(PY)
#CFLAGS += -DALIGNMENT_WORKAROUND
#.
#. When debugging, disable -O2 and enable -g.
-CFLAGS += -g -DNDEBUG
-#CFLAGS += -O2
+CFLAGS += -g
+#CFLAGS += -O2 -DNDEBUG
SOFLAGS = -shared -fPIC
@@ -48,11 +48,12 @@ PROGRAMS += $(shell test `uname -m 2>/dev/null` != ia64 && echo biosdecode owner
PROGRAMS != echo dmidecode ; test `uname -m 2>/dev/null` != ia64 && echo biosdecode ownership vpddecode
-all : $(PROGRAMS)
+all : $(PROGRAMS) module
module:
- python setup.py clean
python setup.py build
+
+install:
python setup.py install
python -c 'import dmidecode'
@@ -153,3 +154,5 @@ clean :
python setup.py clean
$(RM) *.so *.o $(PROGRAMS) core
rm -rf build
+
+.PHONY: install clean module all