Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
COMMON-5149 Cleaned up conditionals in makefile used for i386
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltucci committed Apr 28, 2023
1 parent 412dfb5 commit bf8cb9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions compress/src/main/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ OBJS = \
$(LIBNAME): $(OBJS)
$(CC) $(LD_FLAGS) -o $@ $(OBJS)

build: $(LIBNAME) $(if $(OS:linux=),,$(if $(ARCH:x86_64=),,))
build: $(LIBNAME)

$(DEST_DIR):
mkdir -p $(DEST_DIR)

install: build $(DEST_DIR) $(if $(OS:linux=),,$(if $(ARCH:x86_64=),,))
install: build $(DEST_DIR)
cp $(LIBNAME) $(DEST_DIR)/$(subst -$(ARCH),,$(LIBNAME))

clean: $(if $(OS:linux=),,$(if $(ARCH:x86_64=),,))
clean:
rm -rf $(OBJS) $(TARGET)

6 changes: 3 additions & 3 deletions mmap/src/main/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ OBJS = \
$(REALLIBNAME): $(OBJS)
$(CC) $(LD_FLAGS) -o $@ $(OBJS)

build: $(REALLIBNAME) $(if $(OS:linux=),,$(if $(ARCH:x86_64=),,))
build: $(REALLIBNAME)

install: build $(if $(OS:linux=),,$(if $(ARCH:x86_64=),,))
install: build
cp $(REALLIBNAME) $(DEST_DIR)/$(subst -$(ARCH),,$(REALLIBNAME))

clean: $(if $(OS:linux=),,$(if $(ARCH:x86_64=),,))
clean:
rm -rf $(OBJS) $(TARGET)

0 comments on commit bf8cb9b

Please sign in to comment.