@@ -37,10 +37,26 @@ vpath %.h $(SRC_D)
3737vpath % $(OBJ_D )
3838
3939# ##############################################################################
40- build : dmidecode.so
41- dmidecode.so : $(SO )
42- cp $< $(PY ) -$@
40+ build : $(PY ) -dmidecode.so
41+ $(PY ) -dmidecode.so : $(SO )
42+ cp $< $@
43+
44+ $(SO ) :
45+ $(PY ) src/setup.py build
46+
47+ install :
48+ $(PY ) src/setup.py uninstall
49+
50+ uninstall :
51+ $(PY ) src/setup.py uninstall
4352
53+ clean :
54+ $(PY ) src/setup.py clean
55+ -$(RM ) * .so lib/* .o core
56+ -rm -rf build .dpkg
57+
58+ # ##############################################################################
59+ # . Source
4460.srcsrv : $(SRCSRV ) /$(PACKAGE ) /$(PACKAGE ) _$(VERSION ) .orig.tar.gz
4561$(SRCSRV ) /$(PACKAGE ) /$(PACKAGE ) _$(VERSION ) .orig.tar.gz : ../$(PACKAGE ) _$(VERSION ) .orig.tar.gz
4662 cp $< $@
@@ -56,19 +72,25 @@ $(SRCSRV)/$(PACKAGE)/$(PACKAGE)_$(VERSION).orig.tar.gz: ../$(PACKAGE)_$(VERSION)
5672 --exclude private \
5773 $(PACKAGE )
5874
75+
76+
77+ # ##############################################################################
78+ # . Debian
79+
5980.dpkg : debian .src
6081 -rm ../build-area/$(PACKAGE ) _$(VERSION ) *
6182 svn-buildpackage --svn-ignore-new -us -uc -rfakeroot -enima@it.net.au
6283 lintian --verbose -c ../build-area/$(PACKAGE ) _$(VERSION ) -1_i386.deb
6384 lintian --verbose -iI ../build-area/$(PACKAGE ) _$(VERSION ) -1_i386.changes
85+
86+ dupload :
6487 cd ../build-area/ && \
6588 gpg --clearsign python-dmidecode_2.10-1_i386.changes && \
6689 mv python-dmidecode_2.10-1_i386.changes.asc python-dmidecode_2.10-1_i386.changes && \
67- echo dupload -t mentors python-dmidecode_2.10-1_i386.changes
90+ dupload -t mentors python-dmidecode_2.10-1_i386.changes
6891 touch $@
6992
70- $(SO ) :
71- $(PY ) src/setup.py build
93+
7294
7395# ##############################################################################
7496libdmidecode.so : dmihelper.o util.o dmioem.o dmidecode.o dmidecodemodule.o
@@ -92,12 +114,4 @@ $(OBJ_D)/dmioem.o: dmioem.c types.h dmidecode.h dmioem.h
92114
93115
94116# ##############################################################################
95- uninstall :
96- rm -f $(SO )
97-
98- clean :
99- $(PY ) src/setup.py clean
100- -$(RM ) * .so lib/* .o core
101- -rm -rf build .dpkg
102-
103- .PHONY : install clean uninstall module build
117+ .PHONY : install clean uninstall module build dupload
0 commit comments