summaryrefslogtreecommitdiff
path: root/include/Makefile.in
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2018-05-01 20:03:51 +0100
committerJoe Thornber <ejt@redhat.com>2018-05-01 20:03:51 +0100
commit1553993ea1e28222704ac90e1765eef86ea9eff1 (patch)
treeeaa7346e0926623c8a35380cf9b90d136c68556f /include/Makefile.in
parent3ea862bdfc036f6e5ce08ba01eb706d1d10638cd (diff)
downloadlvm2-1553993ea1e28222704ac90e1765eef86ea9eff1.tar.gz
Revert "build: Stop creating the symlinks in include/ on the fly."
This reverts commit cdcea0bf55c170f538c3ffc114792eb3c993f4ac.
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