liblist-c

C type-agnostic linked-list library
git clone https://git.sinitax.com/sinitax/liblist-c
Log | Files | Refs | LICENSE | sfeed.txt

commit a60fca54f73071de1b03e96f845dc9147dc41a7e
parent fe0f9615b3e0be82a258b62edf6f72779bf71fd9
Author: Louis Burda <quent.burda@gmail.com>
Date:   Tue, 30 May 2023 15:42:40 +0200

Remove executable permissions from headers install

Diffstat:
M.gitignore | 1+
Dbuild.jst | 53-----------------------------------------------------
Mbuild.jst.tmpl | 2+-
3 files changed, 2 insertions(+), 54 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,5 +1,6 @@ compile_commands.json build +build.jst .cache vgcore* test diff --git a/build.jst b/build.jst @@ -1,53 +0,0 @@ - - - -cflags = -Wunused-function -Wunused-variable -Wconversion - -I include -O2 - -rule liba - gcc -o $out.tmp.o $in $cflags -r - objcopy --keep-global-symbols=liblist.api $out.tmp.o $out.fixed.o - ar rcs $out $out.fixed.o - rm $out.tmp.o $out.fixed.o - -rule libso - gcc -o $out $in $cflags -shared -Wl,-version-script liblist.lds - -rule cc - gcc -o $out $in $cflags - -rule mkdir - mkdir $out - -target build - mkdir - -target build/liblist.a - liba src/list.c | include/list.h build - -target build/liblist.so - libso src/list.c | include/list.h build - -target build/test - cc src/test.c build/liblist.a | build - -command clean - rm -rf build - -command cleanall - just clean - -command install - install -m755 build/liblist.a -t "/usr/local/lib" - install -m755 build/liblist.so -t "/usr/local/lib" - install -m755 include/list.h -t "/usr/local/include" - -command uninstall - rm -f "/usr/local/lib/liblist.a" - rm -f "/usr/local/lib/liblist.so" - rm -f "/usr/local/include/list.h" - -command all - just build/liblist.a build/liblist.so build/test - - diff --git a/build.jst.tmpl b/build.jst.tmpl @@ -52,7 +52,7 @@ command cleanall command install install -m755 build/liblist.a -t "#{DESTDIR}#{PREFIX}#{LIBDIR}" install -m755 build/liblist.so -t "#{DESTDIR}#{PREFIX}#{LIBDIR}" - install -m755 include/list.h -t "#{DESTDIR}#{PREFIX}#{INCLDIR}" + install -m644 include/list.h -t "#{DESTDIR}#{PREFIX}#{INCLDIR}" command uninstall rm -f "#{DESTDIR}#{PREFIX}#{LIBDIR}/liblist.a"