gunnar: server/db Makefile,1.5.2.3,1.5.2.4
cvs at kolab.org
cvs at kolab.org
Tue Nov 17 10:18:59 CET 2009
Author: gunnar
Update of /kolabrepository/server/db
In directory doto:/tmp/cvs-serv31605/db
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/db/Attic/Makefile,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -u -d -r1.5.2.3 -r1.5.2.4
--- Makefile 9 Nov 2009 17:08:38 -0000 1.5.2.3
+++ Makefile 17 Nov 2009 09:18:57 -0000 1.5.2.4
@@ -7,7 +7,7 @@
all: $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
-$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(CURSRCDIR)/kolab.patch Makefile
+$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).$(PLATTAG).rpm $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(CURSRCDIR)/kolab.patch Makefile
$(RPM) -ihv $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
cd $(KOLABRPMSRC)/$(PACKAGE) && patch < $(CURSRCDIR)/kolab.patch && $(RPM) -ba $(PACKAGE).spec
@@ -21,3 +21,7 @@
clean:
rm -f $(CURSRCDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).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