summaryrefslogtreecommitdiff
path: root/klibc/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-17 00:22:55 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:08 -0700
commit3555a14bae9f372385e4bc01368027cdbc29384c (patch)
tree581893cb67b1788f38b51fbbabd2c7deadd0e810 /klibc/Makefile
parentc63a27273bffd268dfedc492399f3be71bad5dd4 (diff)
[PATCH] sync klibc with release 0.95
Diffstat (limited to 'klibc/Makefile')
-rw-r--r--klibc/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/klibc/Makefile b/klibc/Makefile
index 5f9a7d6a6e..ef5fbabff8 100644
--- a/klibc/Makefile
+++ b/klibc/Makefile
@@ -1,6 +1,23 @@
+VERSION := $(shell cat version)
SUBDIRS = klibc
all:
+rpmbuild = $(shell which rpmbuild 2>/dev/null || which rpm)
+
+klibc.spec: klibc.spec.in version
+ sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
+
+.PHONY: rpm
+rpm: klibc.spec
+ +$(rpmbuild) -bb klibc.spec
+
%:
@set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+
+clean:
+ @set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+
+spotless:
+ @set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+ rm -f klibc.spec *~ tags