Skip to content

Commit 345c69a

Browse files
committed
Update Makefile to statify MacOS release builds.
1 parent 0fc8020 commit 345c69a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ doall: $(addprefix ${TARGET_DIR}/,${ALL_TGTS})
401401

402402
.PHONY: doclean-final
403403
doclean-final: doclean
404+
if [ -d ${TARGET_DIR} ] ; then find ${TARGET_DIR} -type f -print | xargs -n 100 rm -f ; fi
404405
if [ -d ${TARGET_DIR} ] ; then find ${TARGET_DIR} -type d -print | sort -r | xargs -n 100 rmdir ; fi
405406
@echo ""
406407
@echo "Cleaned."

src/Makefile.boilermake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@ define ADD_TARGET_RULE
221221
endif
222222
endif
223223

224+
ifneq ($(origin BUILDRELEASE), undefined)
225+
ifeq (${OSTYPE}, Darwin)
226+
${1}_POSTMAKE = utility/scripts/statify $${TARGET_DIR}/lib $${TARGET_DIR}/${1}
227+
endif
228+
endif
229+
224230
$${TARGET_DIR}/${1}: $${${1}_OBJS} $${${1}_PREREQS}
225231
@mkdir -p $$(dir $$@)
226232
$$(strip $${${1}_LINKER} -o $$@ $${LDFLAGS} $${${1}_LDFLAGS} $${${1}_OBJS} $${${1}_LDLIBS} $${LDLIBS})

0 commit comments

Comments
 (0)