chiark / gitweb /
[PATCH] restore OWNER/GROUP assignment in rule coming from RESULT
[elogind.git] / klibc / Makefile
index 288a86270763df15f549ec942adce184ec77a83a..8823a33bfd94e51b0f6e2edb3ae62e79a283a29e 100644 (file)
@@ -1,3 +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 --target=$(ARCH)
+
+%:
+       @set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
 
 clean:
-       @echo "all 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