From 39378ee26e0d1d2ab4c76eed22514c6f986c5495 Mon Sep 17 00:00:00 2001 From: nima Date: Wed, 17 Dec 2008 07:20:56 +0000 Subject: Cleaning up source area, ready for debianizing, and rpm after that. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@108 abc39116-655e-4be6-ad55-d661dc543056 --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2465526..6da92fc 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/') CC := gcc RM := rm -f +SRC_D := src +OBJ_D := lib CFLAGS = -g -D_XOPEN_SOURCE=600 CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align CFLAGS += -Wwrite-strings -Wmissing-prototypes -Winline -Wundef #-Wcast-qual @@ -23,13 +25,18 @@ LDFLAGS = SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil SO = /usr/lib/$(PY)/site-packages/dmidecode.so +#. Search +vpath %.o $(OBJ_D) +vpath %.c $(SRC_D) +vpath %.h $(SRC_D) +vpath % $(OBJ_D) ############################################################################### install: build - $(PY) setup.py install + $(PY) src/setup.py install build: - $(PY) setup.py build + $(PY) src/setup.py build ############################################################################### @@ -62,8 +69,8 @@ uninstall: rm -f $(SO) clean : - $(PY) setup.py clean - -$(RM) *.so *.o core + $(PY) src/setup.py clean + -$(RM) lib/*.so lib/*.o core -rm -rf build .PHONY: install clean uninstall module -- cgit