-# Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012
-# 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
@@ -45,6 +45,7 @@ OBJCFLAGS = @OBJCFLAGS@
OBJCXXFLAGS = @OBJCXXFLAGS@
LDFLAGS_RPATH = @LDFLAGS_RPATH@
+LDFLAGS_INSTALL_NAME = @LDFLAGS_INSTALL_NAME@
PYTHON_FLAGS = @PYTHON_FLAGS@
PROG_IMPLIB_NEEDED = @PROG_IMPLIB_NEEDED@
@@ -107,22 +108,27 @@ PLUGIN_OBJS = ${OBJS:.o=.plugin.o}
MO_FILES = ${LOCALES:.po=.mo}
.SUFFIXES: .beam .c .c.dep .cc .cc.dep .class .cxx .cxx.dep .d .erl .lib.o .java .mo .m .m.dep .mm .mm.dep .o .plugin.o .po .py .pyc .rc .S .S.dep .xpm
-.PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean locales ${SUBDIRS}
+.PHONY: all subdirs subdirs-after pre-depend depend install install-extra uninstall uninstall-extra clean distclean locales ${SUBDIRS} ${SUBDIRS_AFTER}
- ${MAKE} ${MFLAGS} subdirs
- ${MAKE} ${MFLAGS} 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
+subdirs-after: ${SUBDIRS_AFTER}
+${SUBDIRS} ${SUBDIRS_AFTER}:
- ${MAKE} ${MFLAGS} || exit $$?; \
@@ -166,7 +172,7 @@ depend: pre-depend ${SRCS}
if test x"$$regen" = x"1" -a x"$$deps" != x""; then \
- if ${MAKE} ${MFLAGS} $$deps && cat $$deps >.deps; then \
+ if ${MAKE} $$deps && cat $$deps >.deps; then \