mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
runtime(-rs): add clean-generated-files target
The new clean-generated-files make target allows for removing the generated files (including the configuration.toml files). The tools/packaging/static-build/shim-v2/build.sh script now uses that target to always force the re-generation of those files. Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
@@ -452,12 +452,15 @@ optimize: $(SOURCES) | show-summary show-header
|
||||
@RUSTFLAGS="-C link-arg=-s $(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE) $(EXTRA_RUSTFEATURES)
|
||||
|
||||
##TARGET clean: clean build
|
||||
clean:
|
||||
clean: clean-generated-files
|
||||
@cargo clean
|
||||
@rm -f $(GENERATED_FILES)
|
||||
@rm -f tarpaulin-report.html
|
||||
@rm -f $(CONFIGS)
|
||||
|
||||
##TARGET clean-generated-files: clean generated files
|
||||
clean-generated-files:
|
||||
@rm -f $(GENERATED_FILES)
|
||||
|
||||
vendor:
|
||||
@cargo vendor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user