gunnar: server/clamav Makefile,1.7.2.2,1.7.2.3

cvs at kolab.org cvs at kolab.org
Tue Nov 17 10:18:59 CET 2009


Author: gunnar

Update of /kolabrepository/server/clamav
In directory doto:/tmp/cvs-serv31605/clamav

Modified Files:
      Tag: kolab_2_2_branch
	Makefile 
Log Message:
Add an install target. The Makefile organisation is still suboptimal as the targets for source and binary packages should always be separated. But this is something for 2.3.

Index: Makefile
===================================================================
RCS file: /kolabrepository/server/clamav/Makefile,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -u -d -r1.7.2.2 -r1.7.2.3
--- Makefile	9 Nov 2009 17:08:38 -0000	1.7.2.2
+++ Makefile	17 Nov 2009 09:18:56 -0000	1.7.2.3
@@ -22,7 +22,7 @@
 	rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
 	rm -rf *~
 
-$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec $(EXTRA)
+$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec $(EXTRA)
 	test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
 	rsync -tvz "$(SOURCE_0)" $(KOLABRPMSRC)/$(PACKAGE)/
 
@@ -30,3 +30,7 @@
 	cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
 
 	cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
+
+.PHONY: install
+install: $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
+	$(RPM) -Uhv --force $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm





More information about the commits mailing list