summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNima Talebi <nima@autonomy.net.au>2009-06-12 22:30:07 +1000
committerNima Talebi <nima@autonomy.net.au>2009-06-12 22:30:07 +1000
commit3909bcf91e2f1393582a5b949359d57919cedee9 (patch)
tree4f6ce1e2433d1084cea6ce2d9c32d81743126b9d /Makefile
parentd3e1e163a21a55ca8f3daf1d4eb0549851b28361 (diff)
downloadpython-dmidecode-3909bcf91e2f1393582a5b949359d57919cedee9.tar.gz
python-dmidecode-3909bcf91e2f1393582a5b949359d57919cedee9.tar.xz
python-dmidecode-3909bcf91e2f1393582a5b949359d57919cedee9.zip
A nothing-change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index f428ca3..0ba7e19 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ CFLAGS += -O3
#LDFLAGS = -lefence
LDFLAGS =
SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil
-SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecodemod.so
+SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecodemodule.so
#. Search
vpath %.o $(OBJ_D)
@@ -42,8 +42,8 @@ TEMP:
endif
###############################################################################
-build: $(PY)-dmidecodemod.so
-$(PY)-dmidecodemod.so: $(SO)
+build: $(PY)-dmidecodemodule.so
+$(PY)-dmidecodemodule.so: $(SO)
cp $< $@
build: $(SO)
@@ -56,15 +56,16 @@ install:
uninstall:
$(PY) src/setup.py uninstall
-version :
+version:
@echo "python-dmidecode: $(VERSION)"
@echo "python version: $(PY_VER) ($(PY))"
-clean :
-# dh_clean
- $(PY) src/setup.py clean
+clean:
+ -$(PY) src/setup.py clean --all
-$(RM) *.so lib/*.o core
- -rm -rf build .dpkg
+ -rm -rf build
+ -rm -rf rpm
+ -rm -rf src/setup_common.py[oc]
cd unit-tests && $(MAKE) clean
tarball:
@@ -74,7 +75,6 @@ tarball:
tar -czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
rpm: tarball
- rm -rf rpm
mkdir -p rpm/{BUILD,RPMS,SRPMS,SPECS,SOURCES}
cp contrib/$(PACKAGE).spec rpm/SPECS
cp $(PACKAGE)-$(VERSION).tar.gz rpm/SOURCES