Makefile: Do not error out on "make clean"

"make clean" errors out if snap/snapcraft.yaml file
does not exsist and the recipe for target 'clean'
fails. Avoid this my adding a "-f" option to rm to
have a clean state.

Fixes: #187

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
Nitesh Konkar 2018-09-21 18:05:06 +05:30
parent f66ecea9ec
commit 9575f771aa

View File

@ -63,7 +63,7 @@ snap-xbuild:
cd $(MK_DIR)/snap-build; ./xbuild.sh -a all
clean:
rm $(SNAPCRAFT_FILE)
rm -f $(SNAPCRAFT_FILE)
.PHONY: test test-release-tools test-static-build test-packaging-tools snap clean \
$(VERSION_FILE) $(VERSIONS_YAML_FILE)