diff options
author | Joe Thornber <ejt@redhat.com> | 2018-05-01 20:03:51 +0100 |
---|---|---|
committer | Joe Thornber <ejt@redhat.com> | 2018-05-01 20:03:51 +0100 |
commit | 1553993ea1e28222704ac90e1765eef86ea9eff1 (patch) | |
tree | eaa7346e0926623c8a35380cf9b90d136c68556f /include/Makefile.in | |
parent | 3ea862bdfc036f6e5ce08ba01eb706d1d10638cd (diff) | |
download | lvm2-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.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 |