mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
build: Add common CLEANFILES and DISTCLEANFILES to common-rules.mk.
By adding common CLEANFILES and DISTCLEANFILES variables to common-rules.mk, we can remove these from most other Makefiles, and also clean files more consistently. Note that bin_PROGRAMS are already cleaned by 'make clean', so I removed cases where these were unnecessarily added to CLEANFILES.
This commit is contained in:
@@ -87,7 +87,7 @@ built_tests = Bindtests Guestfs010Load Guestfs030Config Guestfs050LVCreate
|
||||
$(built_tests): %: %.hs Guestfs.hs
|
||||
$(GHC) $(GHCFLAGS) --make -main-is $@ -odir .$@ -o $@ $< $(srcdir)/Guestfs.hs -lguestfs
|
||||
|
||||
CLEANFILES = $(all_targets) *~ *.hi *.o test-lv-create.img
|
||||
CLEANFILES += $(all_targets) *.hi test-lv-create.img
|
||||
|
||||
clean-local:
|
||||
-rm -rf $(built_tests:%=.%)
|
||||
|
||||
Reference in New Issue
Block a user