1.10
[platform/upstream/kbd.git] / Makefile.in
1 # Note: BINDIR, DATA_DIR, and DESTDIR also occur in src/Makefile.
2 # Note: The binaries, manpages, data files and messages will eventually be
3 #       installed under @prefix@/bin, @mandir@, @datadir@ and @prefix@/share,
4 #       respectively; these locations are all prefixed with $(DESTDIR)
5 #       which can be used, e.g. to build a binary package.
6 DATA_DIR = @datadir@
7 MAN_DIR = @mandir@
8 BINDIR  = $(DESTDIR)@prefix@/bin
9 DATADIR = $(DESTDIR)/$(DATA_DIR)
10 MANDIR  = $(DESTDIR)/$(MAN_DIR)
11 # If you change the names of any of the following subdirs,
12 # also change paths.h.
13 OLDKEYMAPDIR = keytables
14 KEYMAPDIR = keymaps
15 UNIMAPDIR = unimaps
16 FONTDIR   = consolefonts
17 PARTIALDIR= partialfonts
18 TRANSDIR  = consoletrans
19 KEYMAPSUBDIRS = include sun amiga atari i386/azerty i386/dvorak i386/fgGIod i386/qwerty i386/qwertz i386/include mac/include mac/all
20
21 # Do not use GZIP - it is interpreted by gzip
22 MYGZIP = gzip -f -9
23
24 SUBDIRS = src openvt po
25
26 .EXPORT_ALL_VARIABLES:
27
28 all:
29         for i in $(SUBDIRS) data; do $(MAKE) -C $$i all || exit 1; done
30         @echo
31         @echo "Done. You can now do  make install"
32
33 install:        install-progs install-data install-man
34
35 install-progs:
36         for i in $(SUBDIRS); do $(MAKE) -C $$i install || exit 1; done
37
38 install-man:
39         cd man && $(MAKE) install
40
41 install-data:
42         cd data && $(MAKE) install
43
44 clean:
45         for i in $(SUBDIRS); do $(MAKE) -C $$i clean || exit 1; done
46         cd man && $(MAKE) clean
47         cd data && $(MAKE) clean
48
49 reallyclean distclean spotless: clean
50         find . -name "*~" -exec rm {} ";"
51         for i in $(SUBDIRS); do $(MAKE) -C $$i distclean || exit 1; done
52         rm -f Makefile src/Makefile make_include defines.h
53         cp Makefile.x Makefile