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.
2023-02-10 00:33:31 +03:00
# Copyright (C) 2004-2023 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,
2016-01-21 13:49:46 +03:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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
2023-02-10 00:33:31 +03:00
.DELETE_ON_ERROR :
cmds.h : $( top_srcdir ) /tools /command -lines .in $( top_srcdir ) /tools /license .inc Makefile
2022-09-27 17:06:06 +03:00
@echo " [GEN] $@ "
2023-02-10 00:33:31 +03:00
$( Q) \
2022-09-27 17:06:06 +03:00
( cat $( top_srcdir) /tools/license.inc && \
echo "/* Do not edit. This file is generated by the Makefile. */" && \
echo "cmd(CMD_NONE, none)" && \
2023-02-10 00:33:31 +03:00
trap " $( RM) $@ -t " EXIT INT QUIT TERM && \
$( AWK) '/^ID:/ {print "cmd(" $$2 "_CMD, " $$2 ")"}' $< >$@ -t && \
LC_ALL = C $( SORT) -u $@ -t && \
2022-09-27 17:06:06 +03:00
echo "cmd(CMD_COUNT, count)" \
) > $@
all : cmds .h
2018-11-29 23:47:11 +03:00
DISTCLEAN_TARGETS += configure.h lvm-version.h
2023-02-10 00:33:31 +03:00
CLEAN_TARGETS += cmds.h cmds.h-t \
2018-07-01 16:01:41 +03:00
.symlinks \
.symlinks_created \
2018-06-04 13:16:30 +03:00
activate.h \
archiver.h \
bcache.h \
btree.h \
clvm.h \
config-util.h \
config.h \
config_settings.h \
crc.h \
daemon-client.h \
daemon-io.h \
defaults.h \
dev-cache.h \
dev-ext-udev-constants.h \
dev-type.h \
device-types.h \
device.h \
display.h \
dm-ioctl.h \
dm-log-userspace.h \
dm-logging.h \
dmlib.h \
filter.h \
format-text.h \
format1.h \
format_pool.h \
intl.h \
kdev_t.h \
label.h \
last-path-component.h \
lib.h \
libdevmapper-event.h \
libdevmapper.h \
locking.h \
log.h \
lv.h \
lvm-exec.h \
lvm-file.h \
lvm-flock.h \
lvm-globals.h \
lvm-logging.h \
lvm-maths.h \
lvm-percent.h \
lvm-signal.h \
lvm-string.h \
lvm-wrappers.h \
lvm2app.h \
lvm2cmd.h \
lvmcache.h \
2023-02-10 00:50:59 +03:00
lvmetad-client.h \
lvmetad.h \
2018-06-04 13:16:30 +03:00
lvmlockd-client.h \
lvmlockd.h \
lvmnotify.h \
lvmpolld-client.h \
lvmpolld-protocol.h \
lv_alloc.h \
memlock.h \
metadata-exported.h \
metadata.h \
pogen.h \
polldaemon.h \
polling_ops.h \
properties.h \
prop_common.h \
pv.h \
pv_alloc.h \
report.h \
segtype.h \
sharedlib.h \
str_list.h \
targets.h \
text_export.h \
text_import.h \
tool.h \
toolcontext.h \
util.h \
uuid.h \
vg.h \
2022-09-27 17:06:06 +03:00
xlate.h \
cmds.h