diff options
| author | svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b <svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-28 21:59:56 +0000 |
|---|---|---|
| committer | svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b <svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-28 21:59:56 +0000 |
| commit | 55bf4dbcabf378e9472b7d31d6edf87f6ac853e9 (patch) | |
| tree | 7a9454ea6b8750256e242cf6d5fba3ca7a4b5044 /lang/Makefile | |
Initial Anope Import
git-svn-id: svn://svn.anope.org/anope/trunk@1 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'lang/Makefile')
| -rw-r--r-- | lang/Makefile | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile new file mode 100644 index 000000000..90310df31 --- /dev/null +++ b/lang/Makefile @@ -0,0 +1,79 @@ +# Makefile for language module + +include ../Makefile.inc + + +LANGOBJS = cat de en_us es fr gr nl pt tr it ru +LANGSRCS = cat de en_us.l es fr.l gr.l nl.l pt.l tr.l it.l ru.l + +LANGCOMP = ./langcomp +#LANGCOMP = ./langcomp -w + + +all: $(LANGOBJS) + + +install: all + mkdir -p $(DATDEST)/languages +ifdef RUNGROUP + chgrp $(RUNGROUP) $(DATDEST)/languages + chmod 770 $(DATDEST)/languages +else + chmod 700 $(DATDEST)/languages +endif + cp $(LANGOBJS) $(DATDEST)/languages +ifdef RUNGROUP + chgrp $(RUNGROUP) $(DATDEST)/languages/* + chmod 660 $(DATDEST)/languages/* +else + chmod 600 $(DATDEST)/languages/* +endif + + +clean: + rm -f $(LANGOBJS) langcomp + +spotless: clean + rm -f language.h + + +cat: cat.l langcomp index + ./langcomp $@.l +de: de.l langcomp index + ./langcomp $@.l +en_us: en_us.l langcomp index + ./langcomp $@.l +es: es.l langcomp index + ./langcomp $@.l +fr: fr.l langcomp index + ./langcomp $@.l +gr: gr.l langcomp index + ./langcomp $@.l +nl: nl.l langcomp index + ./langcomp $@.l +pt: pt.l langcomp index + ./langcomp $@.l +tr: tr.l langcomp index + ./langcomp $@.l +it: it.l langcomp index + ./langcomp $@.l +ru: ru.l langcomp index + ./langcomp $@.l + +langcomp: langcomp.c + $(CC) $(CFLAGS) langcomp.c -o $@ + + +language.h: index Makefile + @perl -e <index >$@ '\ + print STDERR "Generating language.h... "; \ + $$i=0; \ + while (<>) { \ + chop; \ + printf "#define %-32s %d\n", $$_, $$i++; \ + } \ + print "\n#define NUM_STRINGS $$i\n"; \ + print STDERR "$$i strings\n";' + +index: en_us.l + grep '^[A-Z]' en_us.l >index |
