-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.mingw
40 lines (31 loc) · 1.2 KB
/
Makefile.mingw
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
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Makefile.mingw
#
# Description: Top Makefile
#
.PHONY: all installer clean
MINGW_MAKEFILE=Makefile.mingw
PACKAGE_VERSION?=$(shell grep ^PACKAGE_VERSION= configure | cut -d "'" -f 2)
PO_INSTALL_SCRIPT = nsis/po_prpltwtr.nsi
all:
$(MAKE) -C src -f $(MINGW_MAKEFILE) $@
$(MAKE) -C po -f $(MINGW_MAKEFILE) $@
$(MAKE) -C data -f $(MINGW_MAKEFILE) $@
clean:
$(MAKE) -C src -f $(MINGW_MAKEFILE) $@
$(MAKE) -C po -f $(MINGW_MAKEFILE) $@
$(MAKE) -C data -f $(MINGW_MAKEFILE) $@
-rm -rf *exe
-rm $(PO_INSTALL_SCRIPT)
ifeq ($(strip $(PACKAGE_VERSION)),)
$(error Version wasn't defined! Did you run configure? If you want, this can be set on the command line)
endif
$(PO_INSTALL_SCRIPT):
@echo "; Automatically generated installer script include for translation .mo files" > $@
@for file in po/*gmo ; do file=`basename $$file`; lang=`basename $$file .gmo`; echo "SetOutPath \"\$$INSTDIR\\locale\\$$lang\\LC_MESSAGES\\\"" >> $@ ; echo "File /oname=prpltwtr.mo ..\\po\\$$file" >>$@ ; done
installer: all dist
dist: $(PO_INSTALL_SCRIPT)
$(MAKE) -C src -f $(MINGW_MAKEFILE) $@
$(MAKE) -C po -f $(MINGW_MAKEFILE) $@
$(MAKE) -C data -f $(MINGW_MAKEFILE) $@
makensis -DPACKAGE_VERSION=$(PACKAGE_VERSION) nsis/prpltwtr.nsi