diff options
Diffstat (limited to 'tools/depends/native/JsonSchemaBuilder/Makefile')
-rw-r--r-- | tools/depends/native/JsonSchemaBuilder/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/depends/native/JsonSchemaBuilder/Makefile b/tools/depends/native/JsonSchemaBuilder/Makefile new file mode 100644 index 0000000..78c4433 --- /dev/null +++ b/tools/depends/native/JsonSchemaBuilder/Makefile @@ -0,0 +1,46 @@ +ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) +-include ../../Makefile.include +DEPS=Makefile + +ifeq ($(NATIVEPREFIX),) + PREFIX = $(ROOT_DIR) +else + PREFIX = $(NATIVEPREFIX) +endif + +ifeq ($(NATIVEPLATFORM),) + PLATFORM = native +else + PLATFORM = $(NATIVEPLATFORM) + DEPS += ../../Makefile.include +endif + +SOURCE=$(ROOT_DIR)/src + +CONFIGURE=./configure --prefix=$(PREFIX) +APP=$(PLATFORM)/JsonSchemaBuilder +APPBIN=$(PREFIX)/bin/JsonSchemaBuilder + +all: .installed-$(PLATFORM) + +$(PLATFORM): $(DEPS) + -rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + cd $(PLATFORM); cp -a $(SOURCE)/* . + cd $(PLATFORM); ./autogen.sh + cd $(PLATFORM); $(CONFIGURE) + + +$(APP): $(PLATFORM) + $(MAKE) -C $(PLATFORM) + + +.installed-$(PLATFORM): $(APP) + $(MAKE) -C $(PLATFORM) install + touch $@ + +clean: + $(MAKE) -C $(PLATFORM) clean + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) + -rm -rf bin |