Skip to content

Commit

Permalink
Use distinct output dir and input files variables in the Makefile - Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kemar committed Jul 21, 2018
1 parent f810111 commit f53d817
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ 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

# 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
Expand Down

0 comments on commit f53d817

Please sign in to comment.