forked from badibouteraa/parliamentwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (24 loc) · 825 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
MODULES=httpdocs/sites/all/modules/custom
THEMES=httpdocs/sites/all/themes/custom
TRANSLATABLE=$(addprefix $(MODULES)/,\
pw_blog/pw_blog.module \
pw_dialogues/pw_dialogues.module \
pw_globals/pw_globals.module \
pw_petitions/pw_petitions.module \
pw_poll/pw_poll.module \
pw_profiles/pw_profiles.module \
pw_question_form/pw_question_form.module \
pw_sidejobs/pw_sidejobs.module)\
$(THEMES)/parliamentwatch/js/script.js \
$(THEMES)/parliamentwatch/template.php \
$(wildcard $(THEMES)/parliamentwatch/templates/*.tpl.php) \
$(wildcard $(THEMES)/blank/templates/*.tpl.php)
null :=
space := $(null) #
comma := ,
general.pot: $(TRANSLATABLE)
-drush potx single --files=$(subst httpdocs/,,$(subst $(space),$(comma),$(strip $(TRANSLATABLE))))
mv httpdocs/general.pot .
rm httpdocs/installer.pot
clean:
rm *.pot