summaryrefslogtreecommitdiffstats
path: root/gettext-tools/po/Makefile.msvc.sh
blob: 0e17054bc0313d1a450e1cdd9ced321c8e121f47 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/sh
# Creates Makefile.msvc.
domain=$1
catalogs=$2

cat <<\EOF
# -*- Makefile -*- for po subdirectory

#### Start of system configuration section. ####

# Flags that can be set on the nmake command line:
#   PREFIX=Some\Directory   Base directory for installation
!if !defined(PREFIX)
PREFIX = c:\usr
!endif

# Directories used by "make":
srcdir = .

# Directories used by "make install":
prefix = $(PREFIX)
datadir = $(prefix)\share
localedir = $(datadir)\locale

# Programs used by "make":
RM = -del

# Programs used by "make install":
INSTALL = copy
INSTALL_PROGRAM = copy
INSTALL_DATA = copy

#### End of system configuration section. ####

SHELL = /bin/sh

all :

install : all force
	-mkdir $(prefix)
	-mkdir $(datadir)
	-mkdir $(localedir)
EOF
for cat in $catalogs; do
  cat=`basename $cat`
  lang=`echo $cat | sed -e 's/\.gmo$//'`
cat <<EOF
	-mkdir \$(localedir)\\${lang}
	-mkdir \$(localedir)\\${lang}\\LC_MESSAGES
	\$(INSTALL_DATA) ${lang}.gmo \$(localedir)\\${lang}\\LC_MESSAGES\\${domain}.mo
EOF
done
cat <<\EOF

installdirs : force
	-mkdir $(prefix)
	-mkdir $(datadir)
	-mkdir $(localedir)
EOF
for cat in $catalogs; do
  cat=`basename $cat`
  lang=`echo $cat | sed -e 's/\.gmo$//'`
cat <<EOF
	-mkdir \$(localedir)\\${lang}
	-mkdir \$(localedir)\\${lang}\\LC_MESSAGES
EOF
done
cat <<\EOF

uninstall : force
EOF
for cat in $catalogs; do
  cat=`basename $cat`
  lang=`echo $cat | sed -e 's/\.gmo$//'`
cat <<EOF
	\$(RM) \$(localedir)\\${lang}\\LC_MESSAGES\\${domain}.mo
EOF
done
cat <<\EOF

check : all

mostlyclean : clean

clean : force

distclean : clean

maintainer-clean : distclean

force :
EOF