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.
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
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
21 # Do not use GZIP - it is interpreted by gzip
24 SUBDIRS = src openvt po
26 .EXPORT_ALL_VARIABLES:
29 for i in $(SUBDIRS) data; do $(MAKE) -C $$i all || exit 1; done
31 @echo "Done. You can now do make install"
33 install: install-progs install-data install-man
36 for i in $(SUBDIRS); do $(MAKE) -C $$i install || exit 1; done
39 cd man && $(MAKE) install
42 cd data && $(MAKE) install
45 for i in $(SUBDIRS); do $(MAKE) -C $$i clean || exit 1; done
46 cd man && $(MAKE) clean
47 cd data && $(MAKE) clean
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