mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 23:21:08 +03:00
24 lines
478 B
Makefile
24 lines
478 B
Makefile
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
|