source: icXML/icXML-devel/src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 2.2 KB
Line 
1
2srcdir = @srcdir@
3top_srcdir = @top_srcdir@
4top_builddir = @top_builddir@
5prefix = @prefix@
6INSTALL = @INSTALL@
7INSTALL_PROGRAM = @INSTALL_PROGRAM@
8mkdir_p = @mkdir_p@
9
10include $(top_srcdir)/version.incl
11
12# No conventional target - this dir is resources only.
13TARGET=
14CLEANFILES += $(RESFILES)
15
16# Resource shortname
17PKGNAME=XercesMessages
18
19# target file for resource bundle - this must be set, or 'make all' won't
20# build any resources.
21RESTARGET=$(top_builddir)/src/.libs/$(PKGNAME)_en_US.cat
22
23# Resource files.  Add new ones for additional locales here.
24# keep in sync with the file RESLIST
25RESFILES=$(PKGNAME)_en_US.cat
26
27# list of targets that aren't actually created
28.PHONY: report
29
30check: all
31
32all: $(RESTARGET) $(TARGET) 
33
34$(RESTARGET): $(RESFILES)
35        @echo building $(RESTARGET)
36        $(mkdir_p) $(top_builddir)/src/.libs
37        cp $(RESFILES) $(top_builddir)/src/.libs
38       
39# clean out files
40distclean clean: $(CLEAN_SUBDIR)
41        -rm -f $(RESTARGET)
42
43## resources
44$(PKGNAME)_%.cat: $(srcdir)/$(PKGNAME)_%.Msg
45        @echo "generating $@"
46        gencat $@ $^
47
48# for installing the library
49# for installing the library
50install: $(RESTARGET)
51        $(mkdir_p) $(prefix)/msg
52        $(INSTALL_PROGRAM) $(RESTARGET) $(prefix)/msg
53
54uninstall:
55        -rm -f $(prefix)/msg/$(RESFILES)
56
57
58# Needed to support "make dist"
59distdir:
60        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
61        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
62        list='XercesMessages_en_US.Msg Makefile.in'; \
63          dist_files=`for file in $$list; do echo $$file; done | \
64          sed -e "s|^$$srcdirstrip/||;t" \
65              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
66        case $$dist_files in \
67          */*) $(MKDIR_P) `echo "$$dist_files" | \
68                           sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
69                           sort -u` ;; \
70        esac; \
71        for file in $$dist_files; do \
72          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
73          if test -d $$d/$$file; then \
74            dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
75            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
76              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
77            fi; \
78            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
79          else \
80            test -f $(distdir)/$$file \
81            || cp -p $$d/$$file $(distdir)/$$file \
82            || exit 1; \
83          fi; \
84        done
Note: See TracBrowser for help on using the repository browser.