2001-10-01 17:36:54 +04:00
#
2004-03-30 23:35:44 +04:00
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
2015-09-11 22:30:05 +03:00
# Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved.
2001-10-01 17:36:54 +04:00
#
2007-09-21 14:16:45 +04:00
# This file is part of LVM2.
2001-10-01 17:36:54 +04:00
#
2004-03-30 23:35:44 +04: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 17:36:54 +04:00
#
2004-03-30 23:35:44 +04: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,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2001-10-01 17:36:54 +04:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 23:10:31 +04:00
top_builddir = @top_builddir@
2001-10-01 17:36:54 +04:00
2010-11-05 19:10:08 +03:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2004-08-18 22:57:40 +04:00
2001-10-01 17:36:54 +04:00
all : .symlinks_created
2015-05-18 11:27:48 +03: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 23:10:31 +04:00
for i in ` cat $<` ; do $( LN_S) $$ i ; done
2001-10-01 17:36:54 +04:00
touch $@
2004-02-14 01:56:45 +03:00
pofile : all
2008-11-01 05:19:19 +03:00
device-mapper : all
2010-03-29 18:11:17 +04:00
cflow : all
2010-11-08 17:19:48 +03:00
2015-09-11 22:30:05 +03:00
DISTCLEAN_TARGETS += .symlinks configure.h lvm-version.h
2015-05-18 11:27:48 +03:00
CLEAN_TARGETS += $( LINKS) .include_symlinks .symlinks_created