Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Top level Makefile
- TOP_DIR = $(CURDIR)
- APP_CREATOR = bin/app-creator
- export ERL_LIBS=$(TOP_DIR)/apps:$(TOP_DIR)/deps
- APPS = $(filter-out %start.sh,$(wildcard apps/*)) $(wildcard deps/*)
- BUILD_TARGETS = $(APPS:%=build-%)
- APP_SRC_FILES = $(wildcard apps/src/*.app.src) $(wildcard deps/src/*.app.src)
- APP_FILES = $(subst /src/,/ebin/,$(APP_SRC_FILES:%.app.src=%.app))
- .PHONY: all $(BUILD_TARGETS)
- all: build
- .PHONY: build
- build: $(BUILD_TARGETS)
- @echo "**************** DONE ***************"
- $(BUILD_TARGETS): $(APP_FILES)
- $(MAKE) -f $(TOP_DIR)/stdapp.mk -C $(patsubst build-%,%,$@) \
- -I $(TOP_DIR) ERL_DEPS_DIR=$(TOP_DIR)/build/$(@:build-%=%) \
- build
- $(APP_FILES): $(subst /ebin/,/src/,$(APP_FILES:%.app=%.app.src))
- bin/app-creator $(subst /ebin,,$(dir $@))
- build-apps/crtt_webfront: build-deps/lager
- build-deps/mochicow: build-deps/pmod_transform
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement