2003-12-17 09:22:55 +01:00
|
|
|
VERSION := $(shell cat version)
|
2003-10-23 03:37:40 +02:00
|
|
|
SUBDIRS = klibc
|
2005-04-27 05:59:47 +02:00
|
|
|
|
2003-10-23 03:37:40 +02:00
|
|
|
all:
|
|
|
|
|
2003-12-17 09:22:55 +01:00
|
|
|
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
|
|
|
|
|
2003-10-23 03:37:40 +02:00
|
|
|
%:
|
|
|
|
@set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
|
2003-12-17 09:22:55 +01:00
|
|
|
|
|
|
|
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
|