ObjFW  Check-in [de3f98e75b]

Overview
Comment:objfw-compile: Fix checking which files to rebuild
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: de3f98e75b57bee57e47b2cf873f4fc6c3d59f50eecb0eec1c3090112b7882e0
User & Date: js on 2022-01-16 16:31:16
Other Links: manifest | tags
Context
2022-01-16
18:23
OFZIPArchive: Throw exception on closed archive check-in: 44bf860dc2 user: js tags: trunk
16:31
objfw-compile: Fix checking which files to rebuild check-in: de3f98e75b user: js tags: trunk
14:16
Doxyfile: Set HAVE_DOT = NO check-in: ce1d51bea5 user: js tags: trunk
Changes

Modified utils/objfw-compile from [af3fd6d372] to [edf9ed279e].

291
292
293
294
295
296
297




298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
		else
			obj="$builddir${i%.mm}.o"
		fi
		;;
	esac
	objs="$objs $obj"
	build="no"




	deps=$($OBJC -E -M $CPPFLAGS $OBJCFLAGS $i |
		sed 's/.*: //' | sed 's/\\//g')

	if test -f "$obj"; then
		for dep in $deps; do
			test "$dep" -nt $obj && build="yes"
		done
	else
		build="yes"
	fi

	if test x"$build" = x"yes"; then
		link="yes"
		status_compiling $i
		mkdir -p "$(dirname $obj)" || status_compile_failed $i $?
		$OBJC $CPPFLAGS $OBJCFLAGS -c -o $obj $i || \







>
>
>
>
|
|
<
<



<
<







291
292
293
294
295
296
297
298
299
300
301
302
303


304
305
306


307
308
309
310
311
312
313
		else
			obj="$builddir${i%.mm}.o"
		fi
		;;
	esac
	objs="$objs $obj"
	build="no"

	if test ! -f "$obj" -o "$i" -nt "$obj"; then
		build="yes"
	else
		deps=$($OBJC -E -M $CPPFLAGS $OBJCFLAGS $i |
			sed 's/.*: //' | sed 's/\\//g')


		for dep in $deps; do
			test "$dep" -nt $obj && build="yes"
		done


	fi

	if test x"$build" = x"yes"; then
		link="yes"
		status_compiling $i
		mkdir -p "$(dirname $obj)" || status_compile_failed $i $?
		$OBJC $CPPFLAGS $OBJCFLAGS -c -o $obj $i || \