commit 755b4e09a5a60dd70468c2672c5657a8548916dc parent 3290680a52d78f8387bb4518ee65eafbd76ba3aa Author: Vincent Forest <vincent.forest@meso-star.com> Date: Fri, 16 May 2025 14:12:08 +0200 Makefile correction Some shell commands used "==" to check equality instead of "=". Diffstat:
| M | Makefile | | | 10 | +++++----- |
| M | Makefile.core | | | 2 | +- |
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -28,13 +28,13 @@ include config.mk default install uninstall lint clean: @$(MAKE) -fMakefile.core $@ - @if [ "$(ATMOSPHERE)" == "ENABLE" ]; then $(MAKE) -fMakefile.atmosphere $@; fi - @if [ "$(COMBUSTION)" == "ENABLE" ]; then $(MAKE) -fMakefile.combustion $@; fi - @if [ "$(PLANETS)" == ENABLE ]; then $(MAKE) -fMakefile.planets $@; fi + @if [ "$(ATMOSPHERE)" = "ENABLE" ]; then $(MAKE) -fMakefile.atmosphere $@; fi + @if [ "$(COMBUSTION)" = "ENABLE" ]; then $(MAKE) -fMakefile.combustion $@; fi + @if [ "$(PLANETS)" = ENABLE ]; then $(MAKE) -fMakefile.planets $@; fi test: - @if [ "$(COMBUSTION)" == "ENABLE" ]; then $(MAKE) -fMakefile.combustion $@; fi - @if [ "$(PLANETS)" == ENABLE ]; then $(MAKE) -fMakefile.planets $@; fi + @if [ "$(COMBUSTION)" = "ENABLE" ]; then $(MAKE) -fMakefile.combustion $@; fi + @if [ "$(PLANETS)" = ENABLE ]; then $(MAKE) -fMakefile.planets $@; fi default: htrdr install: install_common diff --git a/Makefile.core b/Makefile.core @@ -147,7 +147,7 @@ htrdr-core.pc: config.mk htrdr-core.pc.in # Miscellaneous ################################################################################ install: - @if [ "$(LIB_TYPE)" == "SHARED" ]; then \ + @if [ "$(LIB_TYPE)" = "SHARED" ]; then \ $(SHELL) install.sh 755 "$(DESTDIR)$(LIBPREFIX)" $(LIBNAME); \ fi