X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2FMakefile.am;h=46f9289437bc038dfdcd73bfee55f96155cb85cb;hp=7dff92cfd63451bd16f41a72b3f96a17912c2b65;hb=18d52b3b5a11b9625a4780bff85ed9dc49af93fc;hpb=abc3d7889f3774717baf5795ffab2efb396d2570 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 '{}' \;