diff --git a/.gitignore b/.gitignore index b89c342bd..a7c4a36fc 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/aegisub/tools/Makefile b/aegisub/tools/Makefile index 865bfab80..6bc78bd28 100644 --- a/aegisub/tools/Makefile +++ b/aegisub/tools/Makefile @@ -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 \ diff --git a/aegisub/tools/osx-bundle.sh b/aegisub/tools/osx-bundle.sh index 8ccae529e..458d2b70c 100755 --- a/aegisub/tools/osx-bundle.sh +++ b/aegisub/tools/osx-bundle.sh @@ -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