Fix macro file 'serial' numbers for 'aclocal --install'.
[libiconv.git] / libcharset / Makefile.devel
blob7f237a40452f1db8d737b8f9e126ec46f6cd03ec
1 # This is the developer's makefile, not the user's makefile.
2 # Don't use it unless you know exactly what you do!
4 SHELL = /bin/sh
5 MAKE = make
6 AUTOCONF = autoconf
7 AUTOHEADER = autoheader
8 ACLOCAL = aclocal-1.16
9 CP = cp
10 RM = rm -f
12 all : configures include/libcharset.h.build.in include/localcharset.h.build.in
14 autoconf/aclocal.m4 : $(wildcard m4/*.m4)
15         test -d autoconf || mkdir autoconf
16         $(ACLOCAL) -I m4 --output=$@ && rm -rf autom4te.cache
18 configures : configure config.h.in
20 configure : configure.ac autoconf/aclocal.m4
21         $(AUTOCONF) --include autoconf && rm -rf autom4te.cache
23 config.h.in : configure.ac autoconf/aclocal.m4
24         $(AUTOHEADER) --include autoconf && rm -rf autom4te.cache
25         touch config.h.in
27 include/libcharset.h.build.in : include/libcharset.h.in include/export.h
28         cat $< \
29         | sed -e 's/extern \([^"]\)/extern LIBCHARSET_SHLIB_EXPORTED \1/' \
30               -e '/#define _LIBCHARSET_H/r include/export.h' \
31         | sed -e '/#define _LIBCHARSET_H/,/[*][/]$$/{/#define _LIBCHARSET_H/!d;}' \
32           > $@
34 include/localcharset.h.build.in : include/localcharset.h.in include/export.h
35         cat $< \
36         | sed -e 's/extern \([^"]\)/extern LIBCHARSET_SHLIB_EXPORTED \1/' \
37               -e '/#define _LOCALCHARSET_H/r include/export.h' \
38         | sed -e '/#define _LOCALCHARSET_H/,/[*][/]$$/{/#define _LOCALCHARSET_H/!d;}' \
39           > $@
41 totally-clean : force
42         rm -f autoconf/aclocal.m4 configure config.h.in include/libcharset.h.build.in include/localcharset.h.build.in
44 force :