gunnar: server Makefile,1.25,1.26
cvs at kolab.org
cvs at kolab.org
Fri Jul 27 12:30:35 CEST 2007
Author: gunnar
Update of /kolabrepository/server
In directory doto:/tmp/cvs-serv22913
Modified Files:
Makefile
Log Message:
Fix the Makefiles for a possible non-standard development environment (meaning: not located in /kolab).
Index: Makefile
===================================================================
RCS file: /kolabrepository/server/Makefile,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- Makefile 23 Jul 2007 16:06:42 -0000 1.25
+++ Makefile 27 Jul 2007 10:30:33 -0000 1.26
@@ -1,3 +1,30 @@
+ifeq "x$(HOME)" "x"
+ HOME = /kolab
+endif
+
+# Don't know if this is correct but if somebody
+# calls this makefile as root we assume that there
+# is an installation in /kolab
+ifeq "x$(HOME)" "x/root"
+ HOME = /kolab
+endif
+
+ifeq "x$(KOLABPKGURI)" "x"
+ export KOLABPKGURI = http://ftp.belnet.be/packages/kolab/server/development-2.1/openpkg-orig-srpms/
+endif
+ifeq "x$(RPM)" "x"
+ export RPM = $(HOME)/bin/openpkg rpm
+endif
+ifeq "x$(KOLABRPMSRC)" "x"
+ export KOLABRPMSRC = $(HOME)/RPM/SRC
+endif
+ifeq "x$(KOLABRPMPKG)" "x"
+ export KOLABRPMPKG = $(HOME)/RPM/PKG
+endif
+ifeq "x$(KOLABRPMTMP)" "x"
+ export KOLABRPMTMP = $(HOME)/RPM/TMP
+endif
+
BASE_PACKAGES=openldap \
php-smarty
@@ -41,9 +68,9 @@
.PHONY: base
base: stage
- for PKG in $(BASE_PACKAGES); \
- do \
- make -C $$PKG dist || exit $?; \
+ for PKG in $(BASE_PACKAGES); \
+ do \
+ make -e -C $$PKG dist || exit $?; \
done
.PHONY: kolab
@@ -71,14 +98,18 @@
echo 'Remember to update 00INDEX.rdf and install-kolab.sh!'
.PHONY: clean
-clean:
- rm -rf stage
- find . -name "*.src.rpm" -exec rm -f {} \;
+clean: clean-base clean-horde clean-stage
-.PHONY: clean
-clean: clean-horde
+.PHONY: clean-stage
+clean-stage:
rm -rf stage
- find . -name "*.src.rpm" -exec rm -f {} \;
+
+.PHONY: clean-base
+clean-base:
+ for PKG in $(BASE_PACKAGES); \
+ do \
+ make -C $$PKG clean || exit $?; \
+ done
.PHONY: clean-horde
clean-horde:
More information about the commits
mailing list