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