Update buildsys

This commit is contained in:
Jonathan Schleifer 2016-07-09 22:12:09 +02:00
parent 24e8ee8a50
commit b145493526
No known key found for this signature in database
GPG key ID: 338C3541DB54E169
2 changed files with 30 additions and 16 deletions

View file

@ -1,8 +1,8 @@
#
# Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
# Jonathan Schleifer <js@webkeks.org>
# Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
# Jonathan Schleifer <js@heap.zone>
#
# https://webkeks.org/git/?p=buildsys.git
# https://heap.zone/git/?p=buildsys.git
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -114,10 +114,10 @@ MO_FILES = ${LOCALES:.po=.mo}
all:
${MAKE} pre-all
${MAKE} ${MFLAGS} subdirs
${MAKE} ${MFLAGS} depend
${MAKE} subdirs
${MAKE} depend
${MAKE} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${STATIC_PIC_LIB} ${STATIC_PIC_LIB_NOINST} ${SHARED_LIB} ${SHARED_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST} ${JARFILE} locales
${MAKE} ${MFLAGS} subdirs-after
${MAKE} subdirs-after
${MAKE} post-all
pre-all post-all:
@ -128,7 +128,7 @@ subdirs-after: ${SUBDIRS_AFTER}
${SUBDIRS} ${SUBDIRS_AFTER}:
for i in $@; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} || exit $$?; \
${MAKE} || exit $$?; \
${DIR_LEAVE}; \
done
@ -172,7 +172,7 @@ depend: pre-depend ${SRCS}
done; \
if test x"$$regen" = x"1" -a x"$$deps" != x""; then \
${DEPEND_STATUS}; \
if ${MAKE} ${MFLAGS} $$deps && cat $$deps >.deps; then \
if ${MAKE} $$deps && cat $$deps >.deps; then \
rm -f $$deps; \
${DEPEND_OK}; \
else \
@ -623,7 +623,7 @@ locales: ${MO_FILES}
install: all install-extra
for i in ${SUBDIRS} ${SUBDIRS_AFTER}; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} install || exit $$?; \
${MAKE} install || exit $$?; \
${DIR_LEAVE}; \
done
@ -704,7 +704,7 @@ install-extra:
uninstall: uninstall-extra
for i in ${SUBDIRS} ${SUBDIRS_AFTER}; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} uninstall || exit $$?; \
${MAKE} uninstall || exit $$?; \
${DIR_LEAVE}; \
done
@ -797,7 +797,7 @@ uninstall-extra:
clean:
for i in ${SUBDIRS} ${SUBDIRS_AFTER}; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} clean || exit $$?; \
${MAKE} clean || exit $$?; \
${DIR_LEAVE}; \
done
@ -814,7 +814,7 @@ clean:
distclean: clean
for i in ${SUBDIRS} ${SUBDIRS_AFTER}; do \
${DIR_ENTER}; \
${MAKE} ${MFLAGS} distclean || exit $$?; \
${MAKE} distclean || exit $$?; \
${DIR_LEAVE}; \
done
@ -832,7 +832,7 @@ print-hierarchy:
for i in ${SUBDIRS} ${SUBDIRS_AFTER}; do \
echo ${PRINT_HIERARCHY_PREFIX}$$i; \
cd $$i || exit $$?; \
${MAKE} ${MFLAGS} PRINT_HIERARCHY_PREFIX=$$i/ print-hierarchy || exit $$?; \
${MAKE} PRINT_HIERARCHY_PREFIX=$$i/ print-hierarchy || exit $$?; \
cd .. || exit $$?; \
done