#ProfiPacket - packet radio terminal program
#Copyright (C) 1999  Alexander Feigl
#
#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 of the License, 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#Author:
#
#Alexander Feigl
#Burachstraße 51
#
#D-88250 Weingarten
#
#EMail : Alexander.Feigl@gmx.de

LANG=polski

MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = Catalogs/*.catalog Converted/*.ct

all : Catalogs/BBS.catalog \
      Catalogs/Chat.catalog \
      Catalogs/Converse.catalog \
      Catalogs/Datacollector.catalog \
      Catalogs/FileAccess.catalog \
      Catalogs/Interlink.catalog \
      Catalogs/Mail.catalog \
      Catalogs/Miscellaneous.catalog \
      Catalogs/ProfiPacket.catalog \
      Catalogs/UserSettings.catalog



%.ct : ../%.cd			# TO FIX FOR UNIX PATHS AND UNIX PRG
	FlexCat /$*.cd $@ NEWCTFILE t:TempCat.ct    
	cp /tmp/TempCat.ct $@
	rm /tmp/TempCat.ct 

Converted/%.ct : %.ct
	if test "$*" = "ProfiPacket" ; then \
	cp $< $@ ; \
	else \
	../../Tools/ConvertCatalog $< $@ ; \
	fi;

Catalogs/%.catalog : Converted/%.ct ../%.cd
	FlexCat /$*.cd Converted/$*.ct CATALOG $@ FILL WARNCTGAPS

AMINSTALL = $(prefix)/ppinstall/ProfiPacket/Profi_Packet

install-exec-local:
#amiga install section
	$(mkinstalldirs) $(AMINSTALL)/Catalogs/$(LANG)/ProfiPacket
	$(INSTALL_DATA) Catalogs/*.catalog $(AMINSTALL)/Catalogs/$(LANG)/ProfiPacket


