From f53d8177f41978fc039817a03a003122c663aafc Mon Sep 17 00:00:00 2001 From: kemar Date: Sat, 21 Jul 2018 11:06:16 +0200 Subject: [PATCH] Use distinct output dir and input files variables in the Makefile - Fix #72 --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 02b7cc7..3772f46 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,11 @@ SHELL = /bin/bash NODE_BINDIR = ./node_modules/.bin export PATH := $(NODE_BINDIR):$(PATH) +# Where to find input files (it can be multiple paths). +INPUT_FILES = ./dev + # Where to write the files generated by this makefile. -OUTPUT_DIR = dev +OUTPUT_DIR = ./dev # Available locales for the app. LOCALES = en_GB fr_FR it_IT @@ -12,8 +15,8 @@ LOCALES = en_GB fr_FR it_IT # Name of the generated .po files for each available locale. LOCALE_FILES ?= $(patsubst %,$(OUTPUT_DIR)/locale/%/LC_MESSAGES/app.po,$(LOCALES)) -GETTEXT_HTML_SOURCES = $(shell find $(OUTPUT_DIR) -name '*.vue' -o -name '*.html' 2> /dev/null) -GETTEXT_JS_SOURCES = $(shell find $(OUTPUT_DIR) -name '*.vue' -o -name '*.js') +GETTEXT_HTML_SOURCES = $(shell find $(INPUT_FILES) -name '*.vue' -o -name '*.html' 2> /dev/null) +GETTEXT_JS_SOURCES = $(shell find $(INPUT_FILES) -name '*.vue' -o -name '*.js') # Makefile Targets .PHONY: clean makemessages translations