Thourough clean and fclean

This commit is contained in:
Timo Schmidt 2023-03-26 08:04:17 +02:00
parent 345f3b1ecf
commit 79472d8999
2 changed files with 4 additions and 1 deletions

View File

@ -23,12 +23,14 @@ $(OBJDIR)/%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c $< -o $@
clean:
$(RM) $(wildcard $(OBJDIR)/$(OBJ))
$(RM) $(wildcard $(OBJ))
$(RM) $(wildcard $(INCDIR)/*~)
$(RM) $(wildcard *~)
$(RMDIR) $(wildcard $(OBJDIR))
fclean: clean
$(RM) $(wildcard $(BUILDDIR)/*)
$(RMDIR) $(wildcard $(BUILDDIR))
install: all
$(MKDIR) $(DESTDIR)$(PREFIX)/bin

View File

@ -26,6 +26,7 @@ CC=cc
# other executables
RM=/bin/rm -f
RMDIR=/bin/rmdir --ignore-fail-on-non-empty
MKDIR=/bin/mkdir -p
CP=/bin/cp -f
CHMOD=/bin/chmod