Commit 4e887471 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: default avatarJakub Kicinski <kuba@kernel.org>
Reviewed-by: default avatarDonald Hunter <donald.hunter@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db72b6fc
...@@ -11,7 +11,7 @@ $(SUBDIRS): ...@@ -11,7 +11,7 @@ $(SUBDIRS):
$(MAKE) -C $@ ; \ $(MAKE) -C $@ ; \
fi fi
clean hardclean: clean distclean:
@for dir in $(SUBDIRS) ; do \ @for dir in $(SUBDIRS) ; do \
if [ -f "$$dir/Makefile" ] ; then \ if [ -f "$$dir/Makefile" ] ; then \
$(MAKE) -C $$dir $@; \ $(MAKE) -C $$dir $@; \
......
...@@ -43,11 +43,11 @@ protos.a: $(OBJS) ...@@ -43,11 +43,11 @@ protos.a: $(OBJS)
clean: clean:
rm -f *.o rm -f *.o
hardclean: clean distclean: clean
rm -f *.c *.h *.a rm -f *.c *.h *.a
regen: regen:
@../ynl-regen.sh @../ynl-regen.sh
.PHONY: all clean hardclean regen .PHONY: all clean distclean regen
.DEFAULT_GOAL: all .DEFAULT_GOAL: all
...@@ -18,7 +18,7 @@ ynl.a: $(OBJS) ...@@ -18,7 +18,7 @@ ynl.a: $(OBJS)
clean: clean:
rm -f *.o *.d *~ rm -f *.o *.d *~
hardclean: clean distclean: clean
rm -f *.a rm -f *.a
%.o: %.c %.o: %.c
......
...@@ -28,7 +28,7 @@ $(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS) ...@@ -28,7 +28,7 @@ $(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS)
clean: clean:
rm -f *.o *.d *~ rm -f *.o *.d *~
hardclean: clean distclean: clean
rm -f $(BINS) rm -f $(BINS)
.PHONY: all clean .PHONY: all clean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment