# Hey Emacs, this is a -*- makefile -*-

# Makefile for the nlsutils
# Copyright (C) 1994 Jochen Hein (Hein@Student.TU-Clausthal.de)

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

CC=gcc
CFLAGS=-O2 -Wall -ansi
LDFLAGS=-s -N
INSTALL=install

DISTFILES=dspcat.1 dspmsg.1 gencat.1 locale.1 localedef.1 xtract.1 \
          charmap.5 locale.5 \
          Makefile 

all: 

install: 
	$(INSTALL) -o root -g root -m 644 dspcat.1 ${DEBDIR}/usr/man/man1/dspcat.1
	$(INSTALL) -o root -g root -m 644 dspmsg.1 ${DEBDIR}/usr/man/man1/dspmsg.1
	$(INSTALL) -o root -g root -m 644 gencat.1 ${DEBDIR}/usr/man/man1/gencat.1
	$(INSTALL) -o root -g root -m 644 locale.1 ${DEBDIR}/usr/man/man1/locale.1
	$(INSTALL) -o root -g root -m 644 localedef.1 ${DEBDIR}/usr/man/man1/localedef.1
	$(INSTALL) -o root -g root -m 644 xtract.1 ${DEBDIR}/usr/man/man1/xtract.1
	$(INSTALL) -o root -g root -m 644 locale.5 ${DEBDIR}/usr/man/man5/locale.5
	$(INSTALL) -o root -g root -m 644 charmap.5 ${DEBDIR}/usr/man/man5/charmap.5

clean:
	rm -f *.o *~

dist: $(DISTFILES)
	ln $(DISTFILES) ../`cat ../.fname`/man


