]> git.ipfire.org Git - thirdparty/systemd.git/blob - klibc/Makefile
[PATCH] fix unusual sysfs behavior for pcmcia_socket
[thirdparty/systemd.git] / klibc / Makefile
1 VERSION := $(shell cat version)
2 SUBDIRS = klibc
3
4 all:
5
6 rpmbuild = $(shell which rpmbuild 2>/dev/null || which rpm)
7
8 klibc.spec: klibc.spec.in version
9 sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
10
11 .PHONY: rpm
12 rpm: klibc.spec
13 +$(rpmbuild) -bb klibc.spec --target=$(ARCH)
14
15 %:
16 @set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
17
18 clean:
19 @set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
20
21 spotless:
22 @set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
23 rm -f klibc.spec *~ tags