summaryrefslogtreecommitdiffstats
path: root/gettext-tools/po/Makefile.vms.sh
blob: c79c6951d3048f1a333a662409263ae5c9dd1df8 (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
#!/bin/sh
# Creates Makefile.msvc.
domain=$1
catalogs=$2

cat <<\EOF
# -*- Makefile -*- for po subdirectory on VMS using the MMS utility

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

# Directories used by "make install":
prefix = SYS$DATA:[
datadir = $(prefix).share
localedir = $(datadir).locale

# Programs used by "make":
RM = delete

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

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

all :
	write sys$output "Nothing to be done for 'all'."

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

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

uninstall :
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
	write sys$output "Nothing else to be done for 'check'."

mostlyclean : clean
	write sys$output "Nothing else to be done for 'mostlyclean'."

clean :
	write sys$output "Nothing to be done for 'clean'."

distclean : clean
	write sys$output "Nothing else to be done for 'distclean'."

maintainer-clean : distclean
	write sys$output "Nothing else to be done for 'maintainer-clean'."
EOF