diff options
author | Joe Thornber <ejt@redhat.com> | 2018-04-27 15:30:08 +0100 |
---|---|---|
committer | Joe Thornber <ejt@redhat.com> | 2018-04-27 15:30:08 +0100 |
commit | 5c878167a25728fa73a6b7866785a318ba5da7e3 (patch) | |
tree | 73ee8a6815c8c62fa809b9ded3b63f463cb3a556 /include/Makefile.in | |
parent | f8f621951315087c4e7720682be495941dc3cf37 (diff) | |
download | lvm2-5c878167a25728fa73a6b7866785a318ba5da7e3.tar.gz |
Revert "build: Stop creating the symlinks in include/ on the fly."
This reverts commit f8f621951315087c4e7720682be495941dc3cf37.
It wasn't taking builds outside the src dir into account.
Diffstat (limited to 'include/Makefile.in')
-rw-r--r-- | include/Makefile.in | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/Makefile.in b/include/Makefile.in index e5c09b58b..b2571fd62 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -18,4 +18,22 @@ top_builddir = @top_builddir@ include $(top_builddir)/make.tmpl -DISTCLEAN_TARGETS += configure.h lvm-version.h +all: .symlinks_created + +LINKS := $(shell find . -maxdepth 1 -type l) + +.symlinks_created: .symlinks +ifneq (,$(firstword $(LINKS))) + $(RM) $(LINKS) +endif + for i in `cat $<`; do $(LN_S) $$i ; done + touch $@ + +pofile: all + +device-mapper: all + +cflow: all + +DISTCLEAN_TARGETS += .symlinks configure.h lvm-version.h +CLEAN_TARGETS += $(LINKS) .include_symlinks .symlinks_created |