Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / am-utils / dist / m4 / GNUmakefile
blobde2457ae373dd1d9794a628f68c73d09fc92e01e
2 # THIS MAKEFILE IS FOR am-utils maintainers only!
4 # GNUmakefile for remaking configuration files.
6 # Erez Zadok <ezk@cs.columbia.edu>
9 AUTOCONF=autoconf --localdir=./m4 ./m4/configure.in
10 AUTOHEADER=autoheader --localdir=./m4 ./m4/configure.in
11 #AUTOMAKE=./m4/automake --include-deps --amdir=./m4/amdir
12 #AUTOMAKE=automake --include-deps --no-intermediates --localdir=./m4
13 #AUTOMAKE=automake --include-deps --localdir=./m4
14 AUTOMAKE=automake --include-deps --altdir=./m4
15 ACLOCAL=aclocal --altdir=./m4
16 MK_ACLOCAL=./mk-aclocal
18 CUTWARNMSG="warning: AC_TRY_RUN called without default to allow cross compilin"
19 CUTWARNMSG2="AC_OUTPUT_COMMANDS|autoupdate"
20 AMFILES=../Makefile.am $(wildcard ../*/Makefile.am)
21 INAMFILES=$(AMFILES:.am=.in)
22 ACFILES=$(wildcard macros/*.m4 macros/HEADER macros/TRAILER m4/aclocal.m4)
24 LOG=/tmp/amu-${USER}.log
26 TOPDIR=..
27 VPATH=
29 all: testdir ${TOPDIR}/configure config.h.in ${TOPDIR}/Makefile.in \
30 GNUmakefile stamp-h.in
32 config: all $(TOPDIR)/buildall aux_conf.h.in
33 (cd ${TOPDIR} && ./buildall -c)
35 dconfig: all $(TOPDIR)/buildall aux_conf.h.in
36 (cd ${TOPDIR} && ./buildall -C)
38 qconfig: all $(TOPDIR)/buildall aux_conf.h.in
39 (cd ${TOPDIR} && ./buildall -q)
41 build: all $(TOPDIR)/buildall aux_conf.h.in
42 (cd ${TOPDIR} && ./buildall -b)
44 world: all $(TOPDIR)/buildall aux_conf.h.in
45 (cd ${TOPDIR} && ./buildall)
47 testdir: ${TOPDIR}/amd/amd.c
49 ${TOPDIR}/configure: configure.in aclocal.m4
50 -(cd ${TOPDIR} && ${AUTOCONF} > configure.new 2> ${LOG})
51 -@egrep -v ${CUTWARNMSG} ${LOG} > ${LOG}.new ; mv ${LOG}.new ${LOG}
52 @echo '############################################################'
53 @echo 'Checking for "AC_OUTPUT_COMMANDS" warnings:'
54 @echo ' (If you see any output, fix this when autoconf/automake are'
55 @echo ' back in sync in their CVS trees. -ezk, 2/10/00)'
56 -@egrep ${CUTWARNMSG2} ${LOG}
57 -@egrep -v ${CUTWARNMSG2} ${LOG} > ${LOG}.new ; mv ${LOG}.new ${LOG}
58 @echo '############################################################'
59 @if test -s ${LOG}; then cat ${LOG}; exit 2; fi
60 -mv ../configure ../configure.old
61 mv ../configure.new ../configure
62 rm -f ../configure.old
63 chmod a+rx $@
65 config.h.in: configure.in acconfig.h
66 -(cd ${TOPDIR} && ${AUTOHEADER} > ./m4/config.h.in 2> ${LOG})
67 -@egrep -v ${CUTWARNMSG} ${LOG} > ${LOG}.new ; mv ${LOG}.new ${LOG}
68 @echo '############################################################'
69 @echo 'Checking for "AC_OUTPUT_COMMANDS" warnings:'
70 @echo ' (If you see any output, fix this when autoconf/automake are'
71 @echo ' back in sync in their CVS trees. -ezk, 2/10/00)'
72 -@egrep ${CUTWARNMSG2} ${LOG}
73 -@egrep -v ${CUTWARNMSG2} ${LOG} > ${LOG}.new ; mv ${LOG}.new ${LOG}
74 @echo '############################################################'
75 @if test -s ${LOG}; then cat ${LOG}; exit 2; fi
77 ${TOPDIR}/Makefile.in: ${AMFILES} configure.in aclocal.m4
78 (cd ${TOPDIR} && ${AUTOMAKE})
79 @rm -f ${LOG}
81 aclocal.m4: ${ACFILES} configure.in
82 rm -f $@
83 ${MK_ACLOCAL} > acinclude.m4
84 (cd ${TOPDIR} && ${ACLOCAL})
86 stamp-h.in: ${AMFILES} config.h.in aclocal.m4 aux_conf.h.in
87 echo timestamp > $@
89 clean:
90 rm -f ${TOPDIR}/configure config.h.in $(INAMFILES) aclocal.m4 stamp.h.in
92 ##############################################################################
93 # maintainer rules to update autoconf/automake/libtool files distributed with
94 # am-utils. -Erez.
96 P1s=/usr/share/automake
97 P2s=/usr/share/libtool
98 P1=/usr/local/gnu/lib/automake
99 P2=/usr/local/gnu/lib/libtool
100 P3=/misc/mirror/gnu/prep/config
101 P4=/misc/mirror/gnu/prep/GNUinfo
102 ICMD=./m4/copy-if-newbig
103 CPCMD=cp -p
105 update: \
106 config.guess \
107 config.sub \
108 doc/texinfo.tex
109 # depcomp \
110 # install-sh \
111 # ltconfig \
112 # ltmain.sh \
113 # mdate-sh \
114 # missing \
115 # mkinstalldirs \
117 config.guess:: $(P1s)*/config.guess
118 $(ICMD) $? $@
119 config.guess:: $(P2s)/config.guess
120 $(ICMD) $? $@
121 config.guess:: $(P3)/config.guess
122 $(ICMD) $? $@
124 config.sub:: $(P1s)*/config.sub
125 $(ICMD) $? $@
126 config.sub:: $(P2s)/config.sub
127 $(ICMD) $? $@
128 config.sub:: $(P3)/config.sub
129 $(ICMD) $? $@
131 depcomp:: $(P1)/depcomp
132 $(CPCMD) $? $@
134 install-sh: $(P1)/install-sh
135 $(CPCMD) $? $@
137 ltconfig: $(P2)/ltconfig
138 $(CPCMD) $? $@
140 ltmain.sh: $(P2)/ltmain.sh
141 $(CPCMD) $? $@
143 mdate-sh: $(P1)/mdate-sh
144 $(CPCMD) $? $@
146 missing: $(P1)/missing
147 $(CPCMD) $? $@
149 mkinstalldirs: $(P1)/mkinstalldirs
150 $(CPCMD) $? $@
152 doc/texinfo.tex: $(P4)/texinfo.tex
153 $(CPCMD) $? $@
155 ##############################################################################