diff options
author | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-07-27 16:03:42 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-07-27 16:03:42 -0400 |
commit | 899daaf04828ddc6a2fc38b31484d648e218dabf (patch) | |
tree | fab57aa9166c8cb4478ea302d616a4f81518e99d /ipa-server/Makefile | |
parent | 9d5b946fdafa77b7aca360d2d1e8ce48980c559f (diff) | |
download | freeipa-899daaf04828ddc6a2fc38b31484d648e218dabf.tar.gz freeipa-899daaf04828ddc6a2fc38b31484d648e218dabf.tar.xz freeipa-899daaf04828ddc6a2fc38b31484d648e218dabf.zip |
First cut at spec files and Makefile for ipa-server.
Diffstat (limited to 'ipa-server/Makefile')
-rw-r--r-- | ipa-server/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ipa-server/Makefile b/ipa-server/Makefile index 1417a19db..171efc4f1 100644 --- a/ipa-server/Makefile +++ b/ipa-server/Makefile @@ -1,5 +1,16 @@ SUBDIRS=ipa-install +# Version number - this is for the entire server. After +# updating this you should run the version-update +# target. +MAJOR=0 +MINOR=1 +RELEASE=0 +VERSION=$(MAJOR).$(MINOR).$(RELEASE) + +TARBALL_PREFIX=freeipa-server-$(VERSION) +TARBALL=$(TARBALL_PREFIX).tgz + all: @for subdir in $(SUBDIRS); do \ (cd $$subdir && $(MAKE) $@) || exit 1; \ @@ -14,3 +25,16 @@ clean: @for subdir in $(SUBDIRS); do \ (cd $$subdir && $(MAKE) $@) || exit 1; \ done + +version-update: + sed s/VERSION/$(VERSION)/ freeipa-server.spec.in > freeipa-server.spec + +tarball: + -mkdir dist + hg archive -p $(TARBALL_PREFIX) -t tgz dist/$(TARBALL) + +dist: version-update tarball + cp dist/$(TARBALL) ~/rpmbuild/SOURCES/. + rpmbuild -ba freeipa-server.spec + cp ~/rpmbuild/RPMS/noarch/freeipa-server-$(VERSION)-*.rpm dist/. + cp ~/rpmbuild/SRPMS/freeipa-server-$(VERSION)-*.src.rpm dist/. |