(file) Return to Makefile CVS log (file) (dir) Up to [RizwankCVS] / testProject / po

  1 rizwank 1.1 # Generated automatically from Makefile.in.in by configure.
  2             # Makefile for program source directory in GNU NLS utilities package.
  3             # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
  4             #
  5             # This file file be copied and used freely without restrictions.  It can
  6             # be used in projects which are not available under the GNU Public License
  7             # but which still want to provide support for the GNU gettext functionality.
  8             # Please note that the actual code is *not* freely available.
  9             
 10             PACKAGE = enscript
 11             VERSION = 1.6.3
 12             
 13             SHELL = /bin/sh
 14             
 15             
 16             srcdir = .
 17             top_srcdir = ..
 18             
 19             prefix = /home/rizwank/enscript-1.6.3
 20             exec_prefix = ${prefix}
 21             datadir = $(prefix)/share
 22 rizwank 1.1 localedir = $(datadir)/locale
 23             gnulocaledir = $(prefix)/share/locale
 24             gettextsrcdir = $(prefix)/share/gettext/po
 25             subdir = po
 26             
 27             INSTALL = /usr/bin/install -c
 28             INSTALL_DATA = ${INSTALL} -m 644
 29             MKINSTALLDIRS = $(top_srcdir)/./mkinstalldirs
 30             
 31             CC = gcc
 32             GENCAT = 
 33             GMSGFMT = PATH=../src:$$PATH /usr/bin/msgfmt
 34             MSGFMT = /usr/bin/msgfmt
 35             XGETTEXT = PATH=../src:$$PATH /usr/bin/xgettext
 36             MSGMERGE = PATH=../src:$$PATH msgmerge
 37             
 38             DEFS = -DHAVE_CONFIG_H
 39             CFLAGS = -g -O2
 40             CPPFLAGS = 
 41             
 42             INCLUDES = -I.. -I$(top_srcdir)/intl
 43 rizwank 1.1 
 44             COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
 45             
 46             SOURCES = cat-id-tbl.c
 47             POFILES =  de.po es.po fi.po fr.po nl.po ru.po sl.po
 48             GMOFILES =  de.gmo es.gmo fi.gmo fr.gmo nl.gmo ru.gmo sl.gmo
 49             DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
 50             stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
 51             
 52             POTFILES = \
 53             	../compat/getopt.c \
 54             	../compat/xalloc.c \
 55             	../compat/regex.c \
 56             	../src/main.c \
 57             	../src/psgen.c \
 58             	../src/util.c \
 59             	../src/mkafmmap.c \
 60             	../states/lex.l \
 61             	../states/main.c \
 62             	../states/prims.c \
 63             	../states/process.c \
 64 rizwank 1.1 	../states/utils.c
 65             
 66             CATALOGS =  de.gmo es.gmo fi.gmo fr.gmo nl.gmo ru.gmo sl.gmo
 67             CATOBJEXT = .gmo
 68             INSTOBJEXT = .mo
 69             
 70             .SUFFIXES:
 71             .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
 72             
 73             .c.o:
 74             	$(COMPILE) $<
 75             
 76             .po.pox:
 77             	$(MAKE) $(PACKAGE).pot
 78             	$(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
 79             
 80             .po.mo:
 81             	$(MSGFMT) -o $@ $<
 82             
 83             .po.gmo:
 84             	file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
 85 rizwank 1.1 	  && rm -f $$file && $(GMSGFMT) -o $$file $<
 86             
 87             .po.cat:
 88             	sed -f ../intl/po2msg.sed < $< > $*.msg \
 89             	  && rm -f $@ && $(GENCAT) $@ $*.msg
 90             
 91             
 92             all: all-yes
 93             
 94             all-yes: cat-id-tbl.c $(CATALOGS)
 95             all-no:
 96             
 97             $(srcdir)/$(PACKAGE).pot: $(POTFILES)
 98             	$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
 99             	  --add-comments --keyword=_ --keyword=N_ \
100             	  --files-from=$(srcdir)/POTFILES.in \
101             	&& test ! -f $(PACKAGE).po \
102             	   || ( rm -f $(srcdir)/$(PACKAGE).pot \
103             		&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
104             
105             $(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
106 rizwank 1.1 $(srcdir)/stamp-cat-id: $(PACKAGE).pot
107             	rm -f cat-id-tbl.tmp
108             	sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
109             		| sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
110             	if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
111             	  rm cat-id-tbl.tmp; \
112             	else \
113             	  echo cat-id-tbl.c changed; \
114             	  rm -f $(srcdir)/cat-id-tbl.c; \
115             	  mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
116             	fi
117             	cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
118             
119             
120             install: install-exec install-data
121             install-exec:
122             install-data: install-data-yes
123             install-data-no: all
124             install-data-yes: all
125             	if test -r "$(MKINSTALLDIRS)"; then \
126             	  $(MKINSTALLDIRS) $(datadir); \
127 rizwank 1.1 	else \
128             	  $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
129             	fi
130             	@catalogs='$(CATALOGS)'; \
131             	for cat in $$catalogs; do \
132             	  cat=`basename $$cat`; \
133             	  case "$$cat" in \
134             	    *.gmo) destdir=$(gnulocaledir);; \
135             	    *)     destdir=$(localedir);; \
136             	  esac; \
137             	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
138             	  dir=$$destdir/$$lang/LC_MESSAGES; \
139             	  if test -r "$(MKINSTALLDIRS)"; then \
140             	    $(MKINSTALLDIRS) $$dir; \
141             	  else \
142             	    $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
143             	  fi; \
144             	  if test -r $$cat; then \
145             	    $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
146             	    echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
147             	  else \
148 rizwank 1.1 	    $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
149             	    echo "installing $(srcdir)/$$cat as" \
150             		 "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
151             	  fi; \
152             	  if test -r $$cat.m; then \
153             	    $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
154             	    echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
155             	  else \
156             	    if test -r $(srcdir)/$$cat.m ; then \
157             	      $(INSTALL_DATA) $(srcdir)/$$cat.m \
158             		$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
159             	      echo "installing $(srcdir)/$$cat as" \
160             		   "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
161             	    else \
162             	      true; \
163             	    fi; \
164             	  fi; \
165             	done
166             	if test "$(PACKAGE)" = "gettext"; then \
167             	  if test -r "$(MKINSTALLDIRS)"; then \
168             	    $(MKINSTALLDIRS) $(gettextsrcdir); \
169 rizwank 1.1 	  else \
170             	    $(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
171             	  fi; \
172             	  $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
173             			  $(gettextsrcdir)/Makefile.in.in; \
174             	else \
175             	  : ; \
176             	fi
177             
178             # Define this as empty until I found a useful application.
179             installcheck:
180             
181             uninstall:
182             	catalogs='$(CATALOGS)'; \
183             	for cat in $$catalogs; do \
184             	  cat=`basename $$cat`; \
185             	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
186             	  rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
187             	  rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
188             	  rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
189             	  rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
190 rizwank 1.1 	done
191             	rm -f $(gettextsrcdir)/po-Makefile.in.in
192             
193             check: all
194             
195             cat-id-tbl.o: ../intl/libgettext.h
196             
197             dvi info tags TAGS ID:
198             
199             mostlyclean:
200             	rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp
201             	rm -fr *.o
202             
203             clean: mostlyclean
204             
205             distclean: clean
206             	rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
207             
208             maintainer-clean: distclean
209             	@echo "This command is intended for maintainers to use;"
210             	@echo "it deletes files that may require special tools to rebuild."
211 rizwank 1.1 	rm -f $(GMOFILES)
212             
213             distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
214             dist distdir: update-po $(DISTFILES)
215             	dists="$(DISTFILES)"; \
216             	for file in $$dists; do \
217             	  ln $(srcdir)/$$file $(distdir) 2> /dev/null \
218             	    || cp -p $(srcdir)/$$file $(distdir); \
219             	done
220             
221             update-po: Makefile
222             	$(MAKE) $(PACKAGE).pot
223             	PATH=`pwd`/../src:$$PATH; \
224             	cd $(srcdir); \
225             	catalogs='$(CATALOGS)'; \
226             	for cat in $$catalogs; do \
227             	  cat=`basename $$cat`; \
228             	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
229             	  mv $$lang.po $$lang.old.po; \
230             	  echo "$$lang:"; \
231             	  if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
232 rizwank 1.1 	    rm -f $$lang.old.po; \
233             	  else \
234             	    echo "msgmerge for $$cat failed!"; \
235             	    rm -f $$lang.po; \
236             	    mv $$lang.old.po $$lang.po; \
237             	  fi; \
238             	done
239             
240             POTFILES: POTFILES.in
241             	( if test 'x$(srcdir)' != 'x.'; then \
242             	    posrcprefix='$(top_srcdir)/'; \
243             	  else \
244             	    posrcprefix="../"; \
245             	  fi; \
246             	  rm -f $@-t $@ \
247             	    && (sed -e '/^#/d' -e '/^[ 	]*$$/d' \
248             		    -e "s@.*@	$$posrcprefix& \\\\@" < $(srcdir)/$@.in \
249             		| sed -e '$$s/\\$$//') > $@-t \
250             	    && chmod a-w $@-t \
251             	    && mv $@-t $@ )
252             
253 rizwank 1.1 Makefile: Makefile.in.in ../config.status POTFILES
254             	cd .. \
255             	  && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
256             	       $(SHELL) ./config.status
257             
258             # Tell versions [3.59,3.63) of GNU make not to export all variables.
259             # Otherwise a system limit (for SysV at least) may be exceeded.
260             .NOEXPORT:

Rizwan Kassim
Powered by
ViewCVS 0.9.2