1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#
# potool is a program aiding editing of po files
# Copyright (C) 1999-2000 Zbigniew Chyla
# Copyright (C) 2000-2001 Marcin Owsiany
#
# see LICENSE for licensing info
#
VER = 0.4
# Modified for Debian package
DESTDIR =
BINDIR = $(DESTDIR)/usr/bin
INSTALL = install
BININSTALL = $(INSTALL) -s
GLIB_LIB = `glib-config --libs glib`
GLIB_INCLUDE = `glib-config --cflags glib`
CFLAGS = $(GLIB_INCLUDE) -Wall -O2
LDFLAGS = $(GLIB_LIB)
THINGS = potool po.tab lex.po
OBJS = $(addsuffix .o, $(THINGS))
SOURCES = $(addsuffix .c, $(THINGS))
potool: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
$(OBJS): %.o : %.c
po.tab.o lex.po.c lex.po.o: po-gram.h
lex.po.c: po-gram.lex
flex -Ppo $<
po.tab.c: po-gram.y
bison -ppo -bpo -d $<
install: potool
$(BININSTALL) potool $(BINDIR)
$(INSTALL) scripts/poedit $(BINDIR)
$(INSTALL) scripts/postats $(BINDIR)
$(INSTALL) scripts/postats1 $(BINDIR)
# $(INSTALL) scripts/poupdate $(BINDIR)
clean:
rm -f $(OBJS) *~ lex.po.c po.tab.[ch] potool scripts/*~
dist:
cd ..; \
rm -f potool_$(VER).tar.gz potool-$(VER); \
ln -s potool potool-$(VER); \
tar -hcf potool_$(VER).tar potool-$(VER) && gzip -9 potool_$(VER).tar
|