2001-10-01 13:36:54 +00:00
#
2004-03-30 19:35:44 +00:00
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
2015-09-11 21:30:05 +02:00
# Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved.
2001-10-01 13:36:54 +00:00
#
2007-09-21 10:16:45 +00:00
# This file is part of LVM2.
2001-10-01 13:36:54 +00:00
#
2004-03-30 19:35:44 +00:00
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
2001-10-01 13:36:54 +00:00
#
2004-03-30 19:35:44 +00:00
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
2016-01-21 11:49:46 +01:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2001-10-01 13:36:54 +00:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 19:10:31 +00:00
top_builddir = @top_builddir@
2001-10-01 13:36:54 +00:00
2010-11-05 16:10:08 +00:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2004-08-18 18:57:40 +00:00
2001-10-01 13:36:54 +00:00
all : .symlinks_created
2015-05-18 10:27:48 +02:00
LINKS := $( shell find . -maxdepth 1 -type l)
.symlinks_created : .symlinks
i f n e q ( , $( firstword $ ( LINKS ) ) )
$( RM) $( LINKS)
e n d i f
2009-10-02 19:10:31 +00:00
for i in ` cat $<` ; do $( LN_S) $$ i ; done
2001-10-01 13:36:54 +00:00
touch $@
2004-02-13 22:56:45 +00:00
pofile : all
2008-11-01 02:19:19 +00:00
device-mapper : all
2010-03-29 14:11:17 +00:00
cflow : all
2010-11-08 14:19:48 +00:00
2015-09-11 21:30:05 +02:00
DISTCLEAN_TARGETS += .symlinks configure.h lvm-version.h
2015-05-18 10:27:48 +02:00
CLEAN_TARGETS += $( LINKS) .include_symlinks .symlinks_created