.PHONY: all clean realclean distclean emptyoutput prepinstall actualinstall install copyonlyinstall uninstall troubleshoot outputdirs bootstrap deps ecere ecerecom ecerevanilla ear compiler prepbinaries epj2make ide documentor eda prepcodeguard codeguard fixprecompile cleantarget pots installer regenbootstrap updatebootstrap update_ecere update_libec update_ecp update_ecc update_ecs ecereaudio
-ifneq "$(V)" "1"
+ifneq ($(V),1)
.SILENT:
endif
ifndef DESTDIR
-ifeq "$(TARGET_ARCH)" "x86_64"
- ifneq "$(wildcard $(SystemDrive)/Program\ Files )" ""
+ifeq ($(TARGET_ARCH),x86_64)
+ ifneq ($(wildcard $(SystemDrive)/Program\ Files ),)
export DESTDIR=$(SystemDrive)/Program Files/Ecere SDK
else
export DESTDIR=$(SystemDrive)/Ecere SDK
else
export PREFIXLIBDIR=$(prefix)/lib/$(TARGET_ARCH)
- ifeq "$(wildcard $(prefix)/lib/$(TARGET_ARCH) )" ""
+ ifeq ($(wildcard $(prefix)/lib/$(TARGET_ARCH) ),)
export PREFIXLIBDIR=$(prefix)/lib
- ifeq "$(TARGET_ARCH)" "i386-linux-gnu"
- ifneq "$(wildcard $(prefix)/lib32 )" ""
+ ifeq ($(TARGET_ARCH),i386-linux-gnu)
+ ifneq ($(wildcard $(prefix)/lib32 ),)
export PREFIXLIBDIR=$(prefix)/lib32
endif
endif
cd epj2make && $(MAKE)
ecereaudio: prepbinaries
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
@$(call echo,Building EcereAudio...)
cd audio && $(MAKE)
endif
ifdef EDASQLiteCipher
$(call rmq,$(SODESTDIR)$(LP)EDASQLiteCipher$(SO))
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call rmq,$(SODESTDIR)$(LP)EcereAudio$(SO))
endif
ifdef LINUX_TARGET
ifdef EDASQLiteCipher
$(call rmq,$(SODESTDIR)$(LP)EDASQLiteCipher$(SO).0)
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call rmq,$(SODESTDIR)$(LP)EcereAudio$(SO).0)
endif
$(call rmq,$(SODESTDIR)$(LP)ecere$(SOV))
ifdef EDASQLiteCipher
$(call rmq,$(SODESTDIR)$(LP)EDASQLiteCipher$(SOV))
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call rmq,$(SODESTDIR)$(LP)EcereAudio$(SOV))
endif
endif
cd epj2make && $(MAKE) cleantarget
cd ide && $(MAKE) cleantarget
cd installer && $(MAKE) cleantarget
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
cd audio && $(MAKE) cleantarget
endif
cd epj2make && $(MAKE) clean
cd ide && $(MAKE) clean
cd documentor && $(MAKE) clean
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
cd audio && $(MAKE) clean
endif
ifdef CodeGuard
cd epj2make && $(MAKE) realclean
cd ide && $(MAKE) realclean
cd documentor && $(MAKE) realclean
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
cd audio && $(MAKE) realclean
endif
ifdef CodeGuard
cd epj2make && $(MAKE) distclean
cd ide && $(MAKE) distclean
cd documentor && $(MAKE) distclean
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
cd audio && $(MAKE) distclean
endif
ifdef CodeGuard
eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SOV) \
eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SOV)
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
BINARIES += audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SOV)
endif
$(call cpq,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SO),$(OBJBINDIR))
$(call cpq,eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SO),$(OBJBINDIR))
$(call cpq,eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SO),$(OBJBINDIR))
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call cpq,audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SO),$(OBJBINDIR))
endif
ifdef EDASQLiteCipher
$(call cpq,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SOV),$(OBJLIBDIR))
$(call cpq,eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SOV),$(OBJLIBDIR))
$(call cpq,eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SOV),$(OBJLIBDIR))
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call cpq,audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SOV),$(OBJLIBDIR))
endif
ifdef EDASQLiteCipher
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SO).0
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
ln -sf $(LP)EcereAudio$(SOV) $(OBJLIBDIR)$(LP)EcereAudio$(SO).0
endif
$(call cpq,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SO),$(OBJLIBDIR))
$(call cpq,eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SO),$(OBJLIBDIR))
$(call cpq,eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SO),$(OBJLIBDIR))
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call cpq,audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SO),$(OBJLIBDIR))
endif
ifdef EDASQLiteCipher
ifdef EDASQLiteCipher
$(call cpq,$(OBJBINDIR)$(LP)EDASQLiteCipher$(SO),"$(DESTLIBDIR)/")
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call cpq,$(OBJBINDIR)$(LP)EcereAudio$(SO),"$(DESTLIBDIR)/")
endif
$(call cpq,$(OBJBINDIR)ide$(E),"$(BINDIR)/")
ifdef EDASQLiteCipher
install $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SO) $(DESTLIBDIR)/
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
install $(OBJLIBDIR)$(LP)EcereAudio$(SO) $(DESTLIBDIR)/
endif
install $(OBJBINDIR)ide$(E) $(BINDIR)/
ifdef EDASQLiteCipher
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SOV)
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EcereAudio$(SO) $(DESTLIBDIR)/ec/$(LP)EcereAudio$(SOV)
endif
ln -sf $(LP)ecere$(SOV) $(DESTLIBDIR)/$(LP)ecere$(SO).0
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SO).0
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
ln -sf $(LP)EcereAudio$(SOV) $(DESTLIBDIR)/ec/$(LP)EcereAudio$(SO).0
endif
ln -sf $(LP)ecere$(SOV) $(DESTLIBDIR)/$(LP)ecere$(SO)
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SO)
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
ln -sf $(LP)EcereAudio$(SOV) $(DESTLIBDIR)/ec/$(LP)EcereAudio$(SO)
endif
ifndef BSD_HOST
ifdef EDASQLiteCipher
$(call rmq,"$(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SO)")
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call rmq,"$(DESTLIBDIR)/ec/$(LP)EcereAudio$(SO)")
endif
else
ifdef EDASQLiteCipher
$(call rmq,"$(DESTLIBDIR)/$(LP)EDASQLiteCipher$(SO)")
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call rmq,"$(DESTLIBDIR)/$(LP)EcereAudio$(SO)")
endif
endif
ifdef EDASQLiteCipher
$(call rmq,"$(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SOV)")
endif
-ifneq "$(ECERE_AUDIO)" "n"
+ifneq ($(ECERE_AUDIO),n)
$(call rmq,"$(DESTLIBDIR)/ec/$(LP)EcereAudio$(SOV)")
endif
$(call rmq,"$(DESTDIR)$(prefix)/share/pixmaps/ecere.png")