star-phor-input

File format for describing photoreactor configurations
git clone https://www.edstar.cnrs.fr/git/star-phor-input.git
Log | Files | Refs | README | LICENSE

commit 26b0be9fd5740507f3b1e89a337ea25cf84c57cd
parent 2b2cc5340fe3815ceead018d5fed1e91ef89b7fa
Author: Eduardo Fontana Lazzari <edufonlaz@gmail.com>
Date:   Tue,  7 Apr 2026 09:51:13 +0200

Fix: Add missing instructions to Makefile

Diffstat:
MMakefile | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -96,12 +96,12 @@ LIBS_TOOL = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs rsys sphin-local) CFLAGS_TOOL = -std=c99 $(CFLAGS_EXE) $(INCS_TOOL) LDFLAGS_TOOL = $(LDFLAGS_EXE) $(LIBS_TOOL) -tool: $(DEP_TOOL) +tool: $(DEP_TOOL) library @$(MAKE) -fMakefile $$(for i in $(DEP_TOOL); do echo -f $${i}; done) \ sphin-lint sphin-lint: .config $(OBJ_TOOL) sphin-local.pc - $(CC) $(CFLAGS_EXE) -o $@ $(OBJ_TOOL) $(LDFLAGS_TOOL) + $(CC) $(CFLAGS_TOOL) -o $@ $(OBJ_TOOL) $(LDFLAGS_TOOL) $(DEP_TOOL) $(OBJ_TOOL): .config sphin-local.pc @@ -138,6 +138,7 @@ sphin-local.pc: sphin.pc.in sed -e '1d'\ -e 's#^includedir=.*#includedir=./src/#'\ -e 's#^libdir=.*#libdir=./#'\ + -e 's#@PREFIX@#$(PREFIX)#g'\ -e 's#@VERSION@#$(VERSION)#g'\ -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ -e 's#@SSTL_VERSION@#$(SSTL_VERSION)#g'\ @@ -147,7 +148,9 @@ install: library tool pkg star-phor-input.5 sphin.3 sphin-lint.1 install() { mode="$$1"; prefix="$$2"; shift 2; \ mkdir -p "$${prefix}"; \ cp "$$@" "$${prefix}"; \ - chmod "$${mode}" "$$@"; \ + printf '%s\n' "$${@}" | while read -r i; do \ + chmod "$${mode}" "$${prefix}/$${i##*/}"; \ + done; \ }; \ install 755 "$(DESTDIR)$(LIBPREFIX)" $(LIBNAME); \ install 755 "$(DESTDIR)$(BINPREFIX)" sphin-lint; \ @@ -164,8 +167,9 @@ uninstall: rm -f "$(DESTDIR)$(LIBPREFIX)/pkgconfig/sphin.pc" rm -f "$(DESTDIR)$(BINPREFIX)/sphin-lint" rm -f "$(DESTDIR)$(INCPREFIX)/star/sphin.h" - rm -f "$(DESTDIR)$(MANPREFIX)/man5/star-phor-input.5" rm -f "$(DESTDIR)$(MANPREFIX)/man1/sphin-lint.1" + rm -f "$(DESTDIR)$(MANPREFIX)/man3/sphin.3" + rm -f "$(DESTDIR)$(MANPREFIX)/man5/star-phor-input.5" rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-phor-input/COPYING" rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-phor-input/README.md"