summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-21 01:41:57 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-21 01:41:57 +0000
commit0005d9f98cb72d01f081d6c4cbe4a588fd9d3926 (patch)
tree2279570e09326c6a55853ef5111c7996ab6618bd /Makefile
parent3a79b7e48e1f19b520ee866ef36b07668020147c (diff)
downloadpython-dmidecode-0005d9f98cb72d01f081d6c4cbe4a588fd9d3926.tar.gz
python-dmidecode-0005d9f98cb72d01f081d6c4cbe4a588fd9d3926.tar.xz
python-dmidecode-0005d9f98cb72d01f081d6c4cbe4a588fd9d3926.zip
Fixed watchfile now that I've created a src (orig.tar.gz) repository.
Added more copyright/lisencing information. More debianizing. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@145 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e443520..6fef677 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@
VERSION := 2.10
PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/')
PY_VER := $(subst python,,$(PY))
+PACKAGE := python-dmidecode
+SRCSRV := /var/www/nima/sites/src.autonomy.net.au/pub
CC := gcc
RM := rm -f
@@ -39,18 +41,20 @@ build: dmidecode.so
dmidecode.so: $(SO)
cp $< $(PY)-$@
-.src:
- cd .. && tar czvf python-dmidecode_$(VERSION).orig.tar.gz \
+.src: $(SRCSRV)/$(PACKAGE)/$(PACKAGE)_$(VERSION).orig.tar.gz
+$(SRCSRV)/$(PACKAGE)/$(PACKAGE)_$(VERSION).orig.tar.gz: .
+ cd .. && tar czvf $@ \
--exclude .svn \
--exclude debian \
--exclude makefile \
--exclude BUILD.Linux \
--exclude private \
- python-dmidecode;
- touch $@
+ $(PACKAGE)
.dpkg: debian
dpkg-buildpackage -us -uc -rfakeroot -enima@it.net.au
+ lintian --verbose -c ../$(PACKAGE)_$(VERSION)-1_i386.deb
+ lintian --verbose -iI ../$(PACKAGE)_$(VERSION)-1_i386.changes
touch $<
$(SO):