mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
appliance: Avoid touching appliance/supermin.d directory.
We must avoid touching appliance/supermin.d unless it is necessary, so that we avoid unnecessary rebuilds of the full appliance. Unfortunately since we created temporary files there, even if we didn't decide to keep those temporary files they would still end up touching supermin.d. To stop this, move the temporary files out.
This commit is contained in:
@@ -84,17 +84,20 @@ supermin.d/daemon.tar.gz: ../daemon/guestfsd guestfsd.suppressions
|
||||
rm -r tmp-d
|
||||
mv $@-t $@
|
||||
|
||||
supermin.d/excludefiles: excludefiles.in Makefile
|
||||
# Note we must avoid touching supermin.d if possible, so don't create
|
||||
# the temporary files inside the supermin.d directory.
|
||||
|
||||
$@supermin.d/excludefiles: excludefiles.in Makefile
|
||||
m4 $(PACKAGELIST_CPP_FLAGS) $< | \
|
||||
grep -v '^[[:space:]]*$$' | grep -v '^#' > $@-t
|
||||
cmp -s $@ $@-t || mv $@-t $@
|
||||
rm -f $@-t
|
||||
grep -v '^[[:space:]]*$$' | grep -v '^#' > excludefiles-t
|
||||
cmp -s $@ excludefiles-t || mv excludefiles-t $@
|
||||
rm -f excludefiles-t
|
||||
|
||||
supermin.d/hostfiles: hostfiles.in Makefile
|
||||
m4 $(PACKAGELIST_CPP_FLAGS) $< | \
|
||||
grep -v '^[[:space:]]*$$' | grep -v '^#' > $@-t
|
||||
cmp -s $@ $@-t || mv $@-t $@
|
||||
rm -f $@-t
|
||||
grep -v '^[[:space:]]*$$' | grep -v '^#' > hostfiles-t
|
||||
cmp -s $@ hostfiles-t || mv hostfiles-t $@
|
||||
rm -f hostfiles-t
|
||||
|
||||
supermin.d/init.tar.gz: init
|
||||
rm -f $@ $@-t
|
||||
|
||||
Reference in New Issue
Block a user