1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-04-27 20:58:44 +00:00

Define RM in makefile if it is not already defined (#326)

Some versions of "make" do not predefine make variable RM (looking at you, FreeBSD)
so if it has NOT been defined we define it as "rm -f"

Also, update the cleanup target to use $(RM) rather than refering directly to "rm".
This commit is contained in:
Nick Briggs
2021-01-30 18:10:39 -08:00
committed by GitHub
parent 4788031c15
commit 5c12d3d9fc
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ LIBDIR = ../lib
BINDIR = ./
RANLIB = ranlib
AR = ar rcv
RM ?= rm -f
# Compiler flags
CLANG_CFLAGS = -std=gnu99 -fno-strict-aliasing

View File

@@ -871,7 +871,7 @@ $(OBJECTDIR)lpy.tab.o : $(SRCDIR)lpy.tab.c $(REQUIRED-INCS) $(INCDIR)lpdefs.h $
################################################################################
cleanup :
rm -rf $(OBJECTDIR) $(OSARCHDIR)
$(RM) -r $(OBJECTDIR) $(OSARCHDIR)
.c.o:
$(CC) $(RFLAGS) $*.c -o $@