# Builds the WriterDemo example of the Developers Guide. PRJ = ../../../.. SETTINGS = $(PRJ)/settings include $(SETTINGS)/settings.mk include $(SETTINGS)/std.mk # Settings APP_NAME = WriterDemo APP_LANG = vb APP_SRC_DIR = $(subst /,$(PS),$(CURDIR)) APP_BIN_DIR = $(subst /,$(PS),$(OUT_BIN)) APP_MISC_DIR = $(subst /,$(PS),$(OUT_MISC)/$(APP_NAME)) APP_PROJ_NAME = $(APP_NAME).$(APP_LANG)proj APP_PROJ_FILE = $(APP_MISC_DIR)/$(APP_PROJ_NAME) APP_EXE_NAME = $(APP_NAME)$(EXE_EXT) APP_EXE_FILE = $(APP_BIN_DIR)/$(APP_EXE_NAME) DOTNET_FLAGS = -c Release LO_NUPKG_ID = LibreOffice.Bindings LO_NUPKG_VERSION = 0.1.0 LO_NUPKG_DIR = $(abspath $(PRJ)/dotnet) # Targets .PHONY: ALL ALL : $(APP_NAME) include $(SETTINGS)/stdtarget.mk $(APP_PROJ_FILE) : -$(MKDIR) $(@D) $(ECHO) "" > $@ $(ECHO) " " >> $@ $(ECHO) " $(APP_NAME)" >> $@ $(ECHO) " net8.0" >> $@ $(ECHO) " exe" >> $@ $(ECHO) " true" >> $@ $(ECHO) " false" >> $@ $(ECHO) " true" >> $@ $(ECHO) " $(LO_NUPKG_DIR)" >> $@ $(ECHO) " " >> $@ $(ECHO) " " >> $@ $(ECHO) " " >> $@ $(ECHO) " " >> $@ $(ECHO) " " >> $@ $(ECHO) "" >> $@ $(ECHOLINE) >> $@ $(APP_EXE_FILE) : $(APP_PROJ_FILE) -$(MKDIR) $(@D) $(SDK_DOTNET) publish $< $(DOTNET_FLAGS) -o $(