No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / po / Makefile.msvc.sh
blob0e17054bc0313d1a450e1cdd9ced321c8e121f47
1 #!/bin/sh
2 # Creates Makefile.msvc.
3 domain=$1
4 catalogs=$2
6 cat <<\EOF
7 # -*- Makefile -*- for po subdirectory
9 #### Start of system configuration section. ####
11 # Flags that can be set on the nmake command line:
12 # PREFIX=Some\Directory Base directory for installation
13 !if !defined(PREFIX)
14 PREFIX = c:\usr
15 !endif
17 # Directories used by "make":
18 srcdir = .
20 # Directories used by "make install":
21 prefix = $(PREFIX)
22 datadir = $(prefix)\share
23 localedir = $(datadir)\locale
25 # Programs used by "make":
26 RM = -del
28 # Programs used by "make install":
29 INSTALL = copy
30 INSTALL_PROGRAM = copy
31 INSTALL_DATA = copy
33 #### End of system configuration section. ####
35 SHELL = /bin/sh
37 all :
39 install : all force
40 -mkdir $(prefix)
41 -mkdir $(datadir)
42 -mkdir $(localedir)
43 EOF
44 for cat in $catalogs; do
45 cat=`basename $cat`
46 lang=`echo $cat | sed -e 's/\.gmo$//'`
47 cat <<EOF
48 -mkdir \$(localedir)\\${lang}
49 -mkdir \$(localedir)\\${lang}\\LC_MESSAGES
50 \$(INSTALL_DATA) ${lang}.gmo \$(localedir)\\${lang}\\LC_MESSAGES\\${domain}.mo
51 EOF
52 done
53 cat <<\EOF
55 installdirs : force
56 -mkdir $(prefix)
57 -mkdir $(datadir)
58 -mkdir $(localedir)
59 EOF
60 for cat in $catalogs; do
61 cat=`basename $cat`
62 lang=`echo $cat | sed -e 's/\.gmo$//'`
63 cat <<EOF
64 -mkdir \$(localedir)\\${lang}
65 -mkdir \$(localedir)\\${lang}\\LC_MESSAGES
66 EOF
67 done
68 cat <<\EOF
70 uninstall : force
71 EOF
72 for cat in $catalogs; do
73 cat=`basename $cat`
74 lang=`echo $cat | sed -e 's/\.gmo$//'`
75 cat <<EOF
76 \$(RM) \$(localedir)\\${lang}\\LC_MESSAGES\\${domain}.mo
77 EOF
78 done
79 cat <<\EOF
81 check : all
83 mostlyclean : clean
85 clean : force
87 distclean : clean
89 maintainer-clean : distclean
91 force :
92 EOF