summaryrefslogtreecommitdiff
path: root/include/Makefile.in
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2018-04-27 15:30:08 +0100
committerJoe Thornber <ejt@redhat.com>2018-04-27 15:30:08 +0100
commit5c878167a25728fa73a6b7866785a318ba5da7e3 (patch)
tree73ee8a6815c8c62fa809b9ded3b63f463cb3a556 /include/Makefile.in
parentf8f621951315087c4e7720682be495941dc3cf37 (diff)
downloadlvm2-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.in20
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