X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=46f9289437bc038dfdcd73bfee55f96155cb85cb;hb=2c55827f6f2c231a8f166e015df4c5c3818c8ba4;hp=7dff92cfd63451bd16f41a72b3f96a17912c2b65;hpb=abc3d7889f3774717baf5795ffab2efb396d2570;p=coloredstderr%2Fcoloredstderr.git diff --git a/src/Makefile.am b/src/Makefile.am index 7dff92c..46f9289 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,17 @@ lib_LTLIBRARIES = libcoloredstderr.la libcoloredstderr_la_SOURCES = coloredstderr.c \ + compiler.h \ constants.h \ debug.h \ + hookmacros.h \ ldpreload.h \ - macros.h \ trackfds.h + +# Make sure the library is not writable. See README why this is important. Is +# not run with `make libcoloredstderr.la`, but this isn't common usage. +all-local: $(lib_LTLIBRARIES) + find .libs -type f -exec chmod ugo-w '{}' \; +# `install` uses normal permissions, "fix" them so `make install` also +# installs non-writable files. +install-exec-hook: + find $(DESTDIR)$(libdir) -type f -exec chmod ugo-w '{}' \;