build: Make 'make clean' remove more files.

Remove man pages and other pages which 'make clean' did not remove
before.

To evaluate which pages could be removed, I did a full build and
check, and then ran 'make clean' followed by 'git clean -xdf'.  By
examining the output of the git clean command I could see which files
were being missed.

Files that are _not_ removed by make clean or make distclean:

 - generator-built files

 - Makefile, Makefile.in, .deps, .depend

 - any ./configure output files (maybe they should be?)
This commit is contained in:
Richard W.M. Jones
2015-10-31 23:41:56 +00:00
parent 6221d54445
commit a2edda266e
43 changed files with 170 additions and 38 deletions

View File

@@ -348,6 +348,9 @@ clean-local:
-find . -name '*.bak' -delete
-find . -name '*.orig' -delete
DISTCLEANFILES = \
ChangeLog
# If you don't want to run all of the tests ('make check') then this
# will just run libguestfs-test-tool for a quick check. Note this
# is NOT a substitute for proper testing!

View File

@@ -22,7 +22,9 @@ EXTRA_DIST = \
test-virt-alignment-scan-guests.sh \
virt-alignment-scan.pod
CLEANFILES = stamp-virt-alignment-scan.pod
CLEANFILES = \
stamp-virt-alignment-scan.pod \
virt-alignment-scan.1
bin_PROGRAMS = virt-alignment-scan

View File

@@ -145,5 +145,7 @@ CLEANFILES = \
stamp-libguestfs-make-fixed-appliance.pod
DISTCLEANFILES = \
make.sh \
packagelist \
stamp-supermin \
supermin.d/*

View File

@@ -39,7 +39,17 @@ EXTRA_DIST = \
virt-index-validate.pod \
yajl_tests.ml
CLEANFILES = *~ *.annot *.cmi *.cmo *.cmx *.cmxa *.o virt-builder
CLEANFILES = \
*~ \
*.annot \
*.cache \
*.cmi \
*.cmo \
*.cmx \
*.cmxa \
*.log \
*.o \
virt-builder
SOURCES_MLI = \
cache.mli \
@@ -219,7 +229,7 @@ stamp-virt-builder.pod: virt-builder.pod $(top_srcdir)/customize/customize-synop
$<
touch $@
CLEANFILES += stamp-virt-builder.pod
CLEANFILES += stamp-virt-builder.pod virt-builder.1
# Tests.
@@ -362,7 +372,8 @@ CLEANFILES += \
index-parse.c \
index-parse.h \
index-scan.c \
stamp-virt-index-validate.pod
stamp-virt-index-validate.pod \
virt-index-validate.1
if HAVE_OCAML
# Automake-generated makefile has a rule ".y.c" but lacks a rule ".y.h".

View File

@@ -31,7 +31,11 @@ CLEANFILES = \
stamp-virt-cat.pod \
stamp-virt-filesystems.pod \
stamp-virt-log.pod \
stamp-virt-ls.pod
stamp-virt-ls.pod \
virt-cat.1 \
virt-filesystems.1 \
virt-log.1 \
virt-ls.1
bin_PROGRAMS = virt-cat virt-filesystems virt-log virt-ls

View File

@@ -17,7 +17,9 @@
include $(top_srcdir)/subdir-rules.mk
CLEANFILES = stamp-guestfsd.pod
CLEANFILES = \
stamp-guestfsd.pod \
guestfsd.8
generator_built = \
actions.h \

View File

@@ -23,7 +23,9 @@ EXTRA_DIST = \
test-virt-df-guests.sh \
virt-df.pod
CLEANFILES = stamp-virt-df.pod
CLEANFILES = \
stamp-virt-df.pod \
virt-df.1
bin_PROGRAMS = virt-df

View File

@@ -121,7 +121,9 @@ stamp-virt-dib.pod: virt-dib.pod
$<
touch $@
CLEANFILES += stamp-virt-dib.pod
CLEANFILES += \
stamp-virt-dib.pod \
virt-dib.1
# Dependencies.
depend: .depend

View File

@@ -21,7 +21,9 @@ EXTRA_DIST = \
test-virt-diff.sh \
virt-diff.pod
CLEANFILES = stamp-virt-diff.pod
CLEANFILES = \
stamp-virt-diff.pod \
virt-diff.1
bin_PROGRAMS = virt-diff

View File

@@ -29,6 +29,14 @@ EXTRA_DIST = \
README
CLEANFILES = \
guestfs-faq.1 \
guestfs-hacking.1 \
guestfs-internals.1 \
guestfs-performance.1 \
guestfs-recipes.1 \
guestfs-release-notes.1 \
guestfs-security.1 \
guestfs-testing.1 \
stamp-guestfs-faq.pod \
stamp-guestfs-hacking.pod \
stamp-guestfs-internals.pod \

View File

@@ -21,7 +21,9 @@ EXTRA_DIST = \
test-virt-edit.sh \
virt-edit.pod
CLEANFILES = stamp-virt-edit.pod
CLEANFILES = \
stamp-virt-edit.pod \
virt-edit.1
bin_PROGRAMS = virt-edit

View File

@@ -30,7 +30,13 @@ EXTRA_DIST = \
CLEANFILES = \
$(erlang_bin_DATA) \
$(bin_PROGRAMS)
$(bin_PROGRAMS) \
bindtests.tmp
# Erlang makes a new libguestfs-<VERSION>/ebin subdirectory each time
# we build, so we have to remove that and any previous copies.
clean-local:
rm -rf libguestfs-1.*
if HAVE_ERLANG

View File

@@ -23,7 +23,9 @@ EXTRA_DIST = \
inspect_vm.erl \
guestfs-erlang.pod
CLEANFILES = stamp-guestfs-erlang.pod
CLEANFILES = \
guestfs-erlang.3 \
stamp-guestfs-erlang.pod
man_MANS = guestfs-erlang.3
noinst_DATA = $(top_builddir)/website/guestfs-erlang.3.html

View File

@@ -30,6 +30,7 @@ EXTRA_DIST = \
virt-dhcp-address.c
CLEANFILES = \
guestfs-examples.3 \
stamp-guestfs-examples.pod
noinst_PROGRAMS = create-disk debug-logging display-icon inspect-vm

View File

@@ -18,12 +18,18 @@
include $(top_srcdir)/subdir-rules.mk
CLEANFILES = \
guestfish.1 \
libguestfs-tools.conf.5 \
stamp-guestfish.pod \
stamp-libguestfs-tools.conf.pod \
stamp-virt-copy-in.pod \
stamp-virt-copy-out.pod \
stamp-virt-tar-in.pod \
stamp-virt-tar-out.pod
stamp-virt-tar-out.pod \
virt-copy-in.1 \
virt-copy-out.1 \
virt-tar-in.1 \
virt-tar-out.1
bin_PROGRAMS = guestfish

View File

@@ -20,7 +20,9 @@ include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \
virt-format.pod
CLEANFILES = stamp-virt-format.pod
CLEANFILES = \
stamp-virt-format.pod \
virt-format.1
bin_PROGRAMS = virt-format

View File

@@ -24,6 +24,8 @@ EXTRA_DIST = \
test-guestunmount-not-mounted.sh
CLEANFILES = \
guestmount.1 \
guestunmount.1 \
stamp-guestmount.pod \
stamp-guestunmount.pod

View File

@@ -154,6 +154,6 @@ stamp-generator: generator
CLEANFILES = $(noinst_DATA) $(noinst_PROGRAM) *.cmi *.cmo *~
DISTCLEANFILES = .depend
DISTCLEANFILES = .depend .pod2text.data.version.2
SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly

View File

@@ -123,7 +123,9 @@ stamp-virt-get-kernel.pod: virt-get-kernel.pod
$<
touch $@
CLEANFILES += stamp-virt-get-kernel.pod
CLEANFILES += \
stamp-virt-get-kernel.pod \
virt-get-kernel.1
# Dependencies.
depend: .depend

View File

@@ -23,7 +23,9 @@ EXTRA_DIST = \
inspect-vm.go \
guestfs-golang.pod
CLEANFILES = stamp-guestfs-golang.pod
CLEANFILES = \
guestfs-golang.3 \
stamp-guestfs-golang.pod
man_MANS = guestfs-golang.3
noinst_DATA = $(top_builddir)/website/guestfs-golang.3.html

View File

@@ -44,7 +44,9 @@ EXTRA_DIST = \
test-xmllint.sh.in \
virt-inspector.pod
CLEANFILES = stamp-virt-inspector.pod
CLEANFILES = \
stamp-virt-inspector.pod \
virt-inspector.1
docdir = @docdir@
dist_doc_DATA = \

View File

@@ -56,10 +56,12 @@ EXTRA_DIST = \
Makefile.inc
CLEANFILES = \
doc-stamp \
bindtests.tmp \
com/redhat/et/libguestfs/*.class \
com_redhat_et_libguestfs_GuestFS.h \
doc-stamp \
*.class \
t/*.class \
*.jar
clean-local:

View File

@@ -25,6 +25,7 @@ EXTRA_DIST = \
CLEANFILES = \
*.class \
guestfs-java.3 \
stamp-guestfs-java.pod
man_MANS = guestfs-java.3

View File

@@ -27,7 +27,10 @@ EXTRA_DIST = \
$(generator_built) \
run-bindtests
CLEANFILES = *~ guestfs.so
CLEANFILES = \
*~ \
bindtests.tmp \
guestfs.so
if HAVE_LUA

View File

@@ -23,7 +23,9 @@ EXTRA_DIST = \
inspect_vm.lua \
guestfs-lua.pod
CLEANFILES = stamp-guestfs-lua.pod
CLEANFILES = \
guestfs-lua.3 \
stamp-guestfs-lua.pod
man_MANS = guestfs-lua.3
noinst_DATA = $(top_builddir)/website/guestfs-lua.3.html

View File

@@ -21,7 +21,9 @@ EXTRA_DIST = \
test-virt-make-fs.sh \
virt-make-fs.pod
CLEANFILES = stamp-virt-make-fs.pod
CLEANFILES = \
stamp-virt-make-fs.pod \
virt-make-fs.1
bin_PROGRAMS = virt-make-fs

View File

@@ -34,7 +34,7 @@ EXTRA_DIST = \
t/*.ml
CLEANFILES = *.annot *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so
CLEANFILES += t/*.cmi t/*.cmo t/*.cmx t/*.o t/*.a t/*.so
CLEANFILES += t/*.annot t/*.cmi t/*.cmo t/*.cmx t/*.o t/*.a t/*.so
if HAVE_OCAML
@@ -100,6 +100,9 @@ noinst_DATA += html/index.html
html/index.html: $(srcdir)/guestfs.mli $(srcdir)/guestfs.ml
-$(OCAMLFIND) ocamldoc -d html -html $^
clean-local:
rm -rf html/*
endif
TESTS_ENVIRONMENT = $(top_builddir)/run --test $(VG)
@@ -161,6 +164,8 @@ endif
check-valgrind:
$(MAKE) VG="$(top_builddir)/run @VG@" TESTS="$(test_progs_all)" check
CLEANFILES += bindtests.tmp
# Dependencies.
%.cmi: %.mli
$(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -package unix -c $< -o $@

View File

@@ -27,6 +27,7 @@ EXTRA_DIST = \
CLEANFILES = \
$(noinst_SCRIPTS) \
*.cmi *.cmo *.cmx *.o \
guestfs-ocaml.3 \
stamp-guestfs-ocaml.pod
man_MANS = guestfs-ocaml.3

View File

@@ -33,7 +33,10 @@ EXTRA_DIST = \
CLEANFILES = \
stamp-virt-p2v.pod \
stamp-virt-p2v-make-disk.pod \
stamp-virt-p2v-make-kickstart.pod
stamp-virt-p2v-make-kickstart.pod \
virt-p2v.1 \
virt-p2v-make-disk.1 \
virt-p2v-make-kickstart.1
# Although virt-p2v is a regular binary, it is not usually installed
# in /usr/bin since it only functions when contained in an ISO or PXE

View File

@@ -36,6 +36,14 @@ EXTRA_DIST = \
DISTCLEANFILES = Build
# Some files are not removed by './Build clean' below.
CLEANFILES = \
*.o \
bindtests.tmp \
MYMETA.json \
MYMETA.yml \
pm_to_blib
# It would be nice to do this, but 'make distclean' runs 'make clean'
# in parallel, and './Build clean' requires '_build/magicnum' to
# exist, so you end up deleting a file which is required by the

View File

@@ -23,7 +23,9 @@ EXTRA_DIST = \
inspect_vm.pl \
guestfs-perl.pod
CLEANFILES = stamp-guestfs-perl.pod
CLEANFILES = \
guestfs-perl.3
stamp-guestfs-perl.pod
man_MANS = guestfs-perl.3
noinst_DATA = $(top_builddir)/website/guestfs-perl.3.html

View File

@@ -110,7 +110,10 @@ endif HAVE_PYTHON
# Extra clean.
CLEANFILES = \
*~ examples/*~ t/*~ \
*~ *.pyc \
examples/*~ examples/*.pyc \
t/*~ t/*.pyc \
bindtests.tmp \
config.h \
guestfs-internal-all.h \
guestfs-internal-frontend-cleanups.h \

View File

@@ -23,7 +23,11 @@ EXTRA_DIST = \
inspect_vm.py \
guestfs-python.pod
CLEANFILES = *.pyc *.pyo stamp-guestfs-python.pod
CLEANFILES = \
*.pyc \
*.pyo \
guestfs-python.3 \
stamp-guestfs-python.pod
man_MANS = guestfs-python.3
noinst_DATA = $(top_builddir)/website/guestfs-python.3.html

View File

@@ -22,7 +22,9 @@ EXTRA_DIST = \
test-virt-rescue-suggest.sh \
virt-rescue.pod
CLEANFILES = stamp-virt-rescue.pod
CLEANFILES = \
stamp-virt-rescue.pod \
virt-rescue.1
bin_PROGRAMS = virt-rescue

View File

@@ -125,7 +125,9 @@ stamp-virt-resize.pod: virt-resize.pod
$<
touch $@
CLEANFILES += stamp-virt-resize.pod
CLEANFILES += \
stamp-virt-resize.pod \
virt-resize.1
# Tests.

View File

@@ -23,7 +23,9 @@ EXTRA_DIST = \
inspect_vm.rb \
guestfs-ruby.pod
CLEANFILES = stamp-guestfs-ruby.pod
CLEANFILES = \
guestfs-ruby.3 \
stamp-guestfs-ruby.pod
man_MANS = guestfs-ruby.3
noinst_DATA = $(top_builddir)/website/guestfs-ruby.3.html

View File

@@ -118,7 +118,9 @@ stamp-virt-sparsify.pod: virt-sparsify.pod
$<
touch $@
CLEANFILES += stamp-virt-sparsify.pod
CLEANFILES += \
stamp-virt-sparsify.pod \
virt-sparsify.1
# Tests.

View File

@@ -27,8 +27,9 @@ EXTRA_DIST = \
CLEANFILES = \
*~ *.annot *.cmi *.cmo *.cmx *.cmxa *.o \
virt-sysprep virt-sysprep.1 \
stamp-virt-sysprep.pod
stamp-virt-sysprep.pod \
virt-sysprep \
virt-sysprep.1
# Filenames sysprep_operation_<name>.ml in alphabetical order.
operations = \

View File

@@ -42,6 +42,8 @@ noinst_DATA = \
lib-i586.so.xz \
test-grep.txt.gz
CLEANFILES = $(noinst_DATA)
100kallzeroes:
rm -f $@ $@-t
dd if=/dev/zero of=$@-t bs=1024 count=100

View File

@@ -23,6 +23,10 @@ BUILT_SOURCES = $(generator_built)
EXTRA_DIST = $(BUILT_SOURCES)
CLEANFILES = \
test.log \
testdownload.tmp
check_PROGRAMS = \
tests \
test-command \

View File

@@ -23,8 +23,11 @@ tools = \
tar \
win-reg
# Before 1.23.23, there were symlinks called *.pl. Need to delete these.
CLEANFILES = *.pl
CLEANFILES = \
virt-list-filesystems.1 \
virt-list-partitions.1 \
virt-tar.1 \
virt-win-reg.1
EXTRA_DIST = \
$(tools:%=virt-%) \

View File

@@ -222,7 +222,9 @@ stamp-virt-v2v.pod: virt-v2v.pod
$<
touch $@
CLEANFILES += stamp-virt-v2v.pod
CLEANFILES += \
stamp-virt-v2v.pod \
virt-v2v.1
# Tests.

View File

@@ -24,7 +24,16 @@ EXTRA_DIST = \
$(SOURCES_MLI) $(SOURCES_ML) \
virt-v2v-test-harness.pod
CLEANFILES = *~ *.annot *.cmi *.cmo *.cmx *.cmxa *.o
CLEANFILES = \
*~ \
*.a \
*.annot \
*.cmi \
*.cmo \
*.cmx \
*.cmxa \
*.o \
*.so
SOURCES_MLI = \
v2v_test_harness.mli
@@ -137,7 +146,9 @@ stamp-virt-v2v-test-harness.pod: virt-v2v-test-harness.pod
$<
touch $@
CLEANFILES += stamp-virt-v2v-test-harness.pod
CLEANFILES += \
stamp-virt-v2v-test-harness.pod \
virt-v2v-test-harness.1
# Dependencies.
depend: .depend