# If requested, these targets must always run first:
.EXTRA_PREREQS := $(filter clean update-stable update-beta, $(MAKECMDGOALS))
-# It makes sense to `clean-sources` after building if requested.
-.NOTPARALLEL: $(.EXTRA_PREREQS) clean-sources
.PHONY: clean-sources
clean-sources:
$(MAKE) -C $(D0SRC) clean # ensures missing .a files are created FIXME WORKAROUND
$(MAKE) -C $(D0SRC)
-$(DPSRC)/darkplaces-dedicated: $(D0SRC)/.libs/libd0_blind_id.a $(D0SRC)/.libs/libd0_rijndael.a
+$(DPSRC)/darkplaces-dedicated: $(D0SRC)/.libs/libd0_blind_id.a
$(MAKE) -C $(DPSRC) sv-release
$(SERVER): $(DPSRC)/darkplaces-dedicated
cp $(DPSRC)/darkplaces-dedicated $(SERVER)
-$(DPSRC)/darkplaces-sdl: $(D0SRC)/.libs/libd0_blind_id.a $(D0SRC)/.libs/libd0_rijndael.a
+$(DPSRC)/darkplaces-sdl: $(D0SRC)/.libs/libd0_blind_id.a
$(MAKE) -C $(DPSRC) sdl-release
$(CLIENT): $(DPSRC)/darkplaces-sdl
cp $(DPSRC)/darkplaces-sdl $(CLIENT)
esac
case " $HOSTS_THAT_ARE_SCHROOT " in
*\ $host\ *)
- schroot="schroot -c $host --"
+ schroot="schroot -c $host --preserve-environment --"
;;
esac
case " $HOSTS_THAT_ARE_MYSELF $HOSTS_THAT_ARE_SCHROOT " in
targetdir=$3
verbose mkdir -p "$targetdir"
(
- cd "misc/buildsrc"
+ cd "$d0/misc/buildsrc"
verbose ./dlls.sh clean "$buildpath"
verbose ./dlls.sh all "$buildpath" "$arch"
)
verbose cp -v $buildpath/out/$arch/* "$targetdir"
+
+ # SDL2
verbose mkdir -p "$d0/misc/builddeps/$arch/"
verbose rsync --delete -avP "$buildpath/pkg/$arch/sdl" "$d0/misc/builddeps/$arch/"
# PKG_CONFIG HACK: avoids needing to modify sdl2-config