TOP= . include ${TOP}/Makefile.config PROJECT= "Agar" PROJECT_GUID= "93733df2-c743-489e-bc9f-f22aee00d787" PROJCONFIGDIR= include/agar/config include ${TOP}/Makefile.proj MKCONFIGURE_FLAGS= --output-cmake=CMakeChecks.cmake SUBDIR= core \ ${SUBDIR_gui} \ ${SUBDIR_micro} \ ${SUBDIR_au} \ ${SUBDIR_map} \ ${SUBDIR_math} \ ${SUBDIR_net} \ ${SUBDIR_sk} \ ${SUBDIR_sg} \ ${SUBDIR_vg} all: all-subdir clean: clean-subdir cleandir: cleandir-config cleandir-subdir install: install-subdir install-includes install-config deinstall: deinstall-subdir deinstall-includes deinstall-config depend: depend-subdir regress: regress-subdir includes: @if [ ! -e "include" ]; then mkdir include; fi @echo "perl mk/gen-includes.pl include/agar" @if [ "${SRCDIR}" != "${BLDDIR}" ]; then \ (cd "${SRCDIR}" && \ perl mk/gen-includes.pl "${BLDDIR}/include/agar"); \ else \ perl mk/gen-includes.pl include/agar; \ fi cleandir-config: rm -fR include config rm -f Makefile.config config.log .projfiles.out .projfiles2.out touch Makefile.config -(cd tools && ${MAKE} cleandir) find . -name premake.lua -exec rm -f {} \; release: -${MAKE} cleandir -${MAKE} all-manlinks sh mk/dist.sh stable install-includes: @echo ${INSTALL_INCL_DIR} ${INCLDIR} @${SUDO} ${INSTALL_INCL_DIR} ${DESTDIR}${INCLDIR} @echo ${INSTALL_INCL_DIR} ${INCLDIR}/agar @${SUDO} ${INSTALL_INCL_DIR} ${DESTDIR}${INCLDIR}/agar @(cd include/agar && for DIR in config ${SUBDIR}; do \ echo "${SH} mk/install-includes.sh $$DIR ${INCLDIR}/agar"; \ ${SUDO} env \ DESTDIR="${DESTDIR}" \ INSTALL_INCL_DIR="${INSTALL_INCL_DIR}" \ INSTALL_INCL="${INSTALL_INCL}" \ ${SH} ${SRCDIR}/mk/install-includes.sh $$DIR ${INCLDIR}/agar; \ done) @for INC in ${SUBDIR}; do \ if [ "$$INC" != "math" ]; then \ echo "${INSTALL_INCL} include/agar/$$INC/$${INC}_pub.h ${INCLDIR}/agar/$${INC}.h"; \ ${SUDO} ${INSTALL_INCL} include/agar/$$INC/$${INC}_pub.h ${DESTDIR}${INCLDIR}/agar/$${INC}.h; \ fi; \ done deinstall-includes: @if [ -e "${INCLDIR}" -a -e "${INCLDIR}/agar" ]; then \ echo "rm -rf ${INCLDIR}/agar"; \ ${SUDO} rm -rf ${INCLDIR}/agar; \ fi install-config: @for F in ${AVAIL_CONFIGSCRIPTS}; do \ echo "${INSTALL_PROG} $$F ${BINDIR}"; \ ${SUDO} ${INSTALL_PROG} $$F ${DESTDIR}${BINDIR}; \ done @if [ "${PKGCONFIG}" != "" ]; then \ if [ ! -e "${DESTDIR}${PKGCONFIG_LIBDIR}" ]; then \ echo "${INSTALL_DATA_DIR} ${PKGCONFIG_LIBDIR}"; \ ${SUDO} ${INSTALL_DATA_DIR} ${DESTDIR}${PKGCONFIG_LIBDIR}; \ fi; \ for F in ${AVAIL_PCMODULES}; do \ echo "${INSTALL_DATA} $$F ${PKGCONFIG_LIBDIR}"; \ ${SUDO} ${INSTALL_DATA} $$F ${DESTDIR}${PKGCONFIG_LIBDIR}; \ done; \ fi @if [ ! -e "${DESTDIR}${PREFIX}/share/aclocal" ]; then \ echo "${INSTALL_DATA_DIR} ${PREFIX}/share/aclocal"; \ ${SUDO} ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/aclocal; \ fi @echo "${INSTALL_DATA} ${SRCDIR}/mk/agar.m4 ${PREFIX}/share/aclocal" @${SUDO} ${INSTALL_DATA} ${SRCDIR}/mk/agar.m4 ${DESTDIR}${PREFIX}/share/aclocal @echo "${INSTALL_DATA} Makefile.config ${DATADIR}/agar.mk" @${SUDO} ${INSTALL_DATA} Makefile.config ${DESTDIR}${DATADIR}/agar.mk deinstall-config: @for F in ${AVAIL_CONFIGSCRIPTS}; do \ echo "${DEINSTALL_PROG} ${BINDIR}/$$F"; \ ${SUDO} ${DEINSTALL_PROG} ${DESTDIR}${BINDIR}/$$F; \ done @if [ "${PKGCONFIG}" != "" ]; then \ for F in ${AVAIL_PCMODULES}; do \ echo "${DEINSTALL_DATA} ${PKGCONFIG_LIBDIR}/$$F"; \ ${SUDO} ${DEINSTALL_DATA} ${DESTDIR}${PKGCONFIG_LIBDIR}/$$F; \ done; \ fi @echo "${DEINSTALL_DATA} ${PREFIX}/share/aclocal/agar.m4" @${SUDO} ${DEINSTALL_DATA} ${DESTDIR}${PREFIX}/share/aclocal/agar.m4 @for F in agar.mk; do \ echo "${DEINSTALL_DATA} ${DATADIR}/$$F"; \ ${SUDO} ${DEINSTALL_DATA} ${DESTDIR}${DATADIR}/$$F; \ done pre-package: @if [ "${PKG_OS}" = "windows" ]; then \ cp -f ${TOP}/mk/install-sdk/install-sdk.exe .; \ cat CHANGELOG.md |sed "s/$$/`echo -e \\\r`/" >CHANGELOG.txt; \ cat INSTALL.md |sed "s/$$/`echo -e \\\r`/" >INSTALL.txt; \ cat gui/license.txt |sed "s/$$/`echo -e \\\r`/" >LICENSE.txt; \ cat OFL.txt |sed "s/$$/`echo -e \\\r`/" >OFL.txt; \ cat README.md |sed "s/$$/`echo -e \\\r`/" >README.txt; \ cp -f mk/agar-logo.png Logo.png; \ echo '' > VisualC.html; \ echo "install-sdk.exe" >> ${PROJFILELIST}; \ echo "CHANGELOG.txt" >> ${PROJFILELIST}; \ echo "INSTALL.txt" >> ${PROJFILELIST}; \ echo "LICENSE.txt" >> ${PROJFILELIST}; \ echo "OFL.txt" >> ${PROJFILELIST}; \ echo "README.txt" >> ${PROJFILELIST}; \ echo "Logo.png" >> ${PROJFILELIST}; \ echo "VisualC.html" >> ${PROJFILELIST}; \ rm -f Makefile.config agar-*-config *.pc premake.lua */premake.lua; \ fi post-package: @if [ "${PKG_OS}" = "windows" ]; then \ rm -f install-sdk.exe CHANGELOG.txt INSTALL.txt LICENSE.txt OFL.txt README.txt Logo.png VisualC.html; \ fi function-list: find . -name \*.3 -exec grep ^\.Fn {} \; |awk '{print $$2}' |uniq .PHONY: clean cleandir install deinstall depend regress includes .PHONY: cleandir-config release .PHONY: install-includes deinstall-includes install-config deinstall-config .PHONY: pre-package post-package function-list include ${TOP}/mk/build.common.mk include ${TOP}/mk/build.subdir.mk include ${TOP}/mk/build.man.mk include ${TOP}/mk/build.proj.mk