Build osx-bundle-restart-helper via the Makefile rather than as part of bundle creation

This commit is contained in:
Thomas Goyne 2013-10-15 11:39:34 -07:00
parent ebd01c50c9
commit d4a7a1a9b6
3 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -58,6 +58,7 @@ aegisub/src/libresrc/default_config.cpp
aegisub/src/libresrc/default_config.h
aegisub/src/libresrc/default_config_platform.json
aegisub/tools/common-respack
aegisub/tools/osx-bundle-restart-helper
aegisub/tools/osx-bundle.sed
autom4te.cache
config.log

View File

@ -4,12 +4,13 @@ PROGRAM = common-respack
SRC += common-respack.cpp
ifdef $(BUILD_DARWIN)
bin_PROGRAMS += osx-bundle-restart-helper
osx_bundle_restart_helper_SOURCES = osx-bundle-restart-helper.c
ifeq (yes, $(BUILD_DARWIN))
osx-bundle-restart-helper: osx-bundle-restart-helper.c
$(BIN_CC) -o osx-bundle-restart-helper osx-bundle-restart-helper.c
CLEANFILES += osx-bundle-restart-helper
all: osx-bundle-restart-helper
endif
EXTRA_DIST = \
osx-bundle-restart-helper.c \
osx-bundle.sh \

View File

@ -118,8 +118,7 @@ cp -v src/${AEGISUB_BIN} "${PKG_DIR}/Contents/MacOS/aegisub"
echo
echo " ---- Build / install restart-helper ----"
echo cc -o "${PKG_DIR}/Contents/MacOS/restart-helper tools/osx-bundle-restart-helper.c"
${CC} -o "${PKG_DIR}/Contents/MacOS/restart-helper" tools/osx-bundle-restart-helper.c || exit $?
cp -v tools/osx-bundle-restart-helper.c "${PKG_DIR}/Contents/MacOS/restart-helper"
echo