Change W32 console detection to look at the window, not stdout
[platform/upstream/glib.git] / glib / libcharset / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
3
4 AM_CPPFLAGS =                           \
5         -DLIBDIR=\"$(libdir)\"          \
6         $(config_h_INCLUDES)
7
8 noinst_LTLIBRARIES += libcharset.la
9
10 libcharset_la_CFLAGS = $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
11 libcharset_la_SOURCES =         \
12         libcharset.h            \
13         localcharset.h          \
14         localcharset.c
15
16 EXTRA_DIST +=                   \
17         README                  \
18         config.charset          \
19         ref-add.sin             \
20         ref-del.sin             \
21         glibc21.m4              \
22         codeset.m4              \
23         update.sh               \
24         make-patch.sh           \
25         libcharset-glib.patch
26
27 charset_alias = $(DESTDIR)$(libdir)/charset.alias
28 charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
29 install-exec-local: all-local
30         $(mkinstalldirs) $(DESTDIR)$(libdir)
31         if test -f $(charset_alias); then \
32           sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
33           $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
34           rm -f $(charset_tmp) ; \
35         else \
36           if test @GLIBC21@ = no; then \
37             sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
38             $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
39             rm -f $(charset_tmp) ; \
40           fi ; \
41         fi
42
43 uninstall-local: all-local
44         if test -f $(charset_alias); then \
45           sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
46           if grep '^# Packages using this file: $$' $(charset_tmp) \
47               > /dev/null; then \
48             rm -f $(charset_alias); \
49           else \
50             $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
51           fi; \
52           rm -f $(charset_tmp); \
53         fi
54
55 charset.alias: config.charset
56         $(AM_V_GEN) $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
57         @mv t-$@ $@
58
59 all-local: ref-add.sed ref-del.sed charset.alias
60
61 SUFFIXES = .sed .sin
62 .sin.sed:
63         $(AM_V_GEN) $(SED) -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
64         @mv t-$@ $@
65
66 CLEANFILES += charset.alias ref-add.sed ref-del.sed