tools: ynl: rename make hardclean -> distclean

The make target to remove all generated files used to be called
"hardclean" because it deleted files which were tracked by git.
We no longer track generated user space files, so use the more
common "distclean" name.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jakub Kicinski 2024-03-04 21:13:26 -08:00 committed by David S. Miller
parent db72b6fc8f
commit 4e887471e8
4 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ $(SUBDIRS):
$(MAKE) -C $@ ; \
fi
clean hardclean:
clean distclean:
@for dir in $(SUBDIRS) ; do \
if [ -f "$$dir/Makefile" ] ; then \
$(MAKE) -C $$dir $@; \

View File

@ -43,11 +43,11 @@ protos.a: $(OBJS)
clean:
rm -f *.o
hardclean: clean
distclean: clean
rm -f *.c *.h *.a
regen:
@../ynl-regen.sh
.PHONY: all clean hardclean regen
.PHONY: all clean distclean regen
.DEFAULT_GOAL: all

View File

@ -18,7 +18,7 @@ ynl.a: $(OBJS)
clean:
rm -f *.o *.d *~
hardclean: clean
distclean: clean
rm -f *.a
%.o: %.c

View File

@ -28,7 +28,7 @@ $(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS)
clean:
rm -f *.o *.d *~
hardclean: clean
distclean: clean
rm -f $(BINS)
.PHONY: all clean