]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blob - src/Makefile.am
Install libcoloredstderr.so read-only.
[coloredstderr/coloredstderr.git] / src / Makefile.am
1 lib_LTLIBRARIES             = libcoloredstderr.la
2 libcoloredstderr_la_SOURCES = coloredstderr.c \
3                               compiler.h \
4                               constants.h \
5                               debug.h \
6                               hookmacros.h \
7                               ldpreload.h \
8                               trackfds.h
9
10 # Make sure the library is not writable. See README why this is important. Is
11 # not run with `make libcoloredstderr.la`, but this isn't common usage.
12 all-local: $(lib_LTLIBRARIES)
13         find .libs -type f -exec chmod ugo-w '{}' \;
14 # `install` uses normal permissions, "fix" them so `make install` also
15 # installs non-writable files.
16 install-exec-hook:
17         find $(DESTDIR)$(libdir) -type f -exec chmod ugo-w '{}' \;