2 # Makefile.in for the AHI sound system
7 ########################################
11 top_srcdir
= @top_srcdir@
14 CATDIR
= ${DISTDIR}/User
/Catalogs
15 CATSRCDIR
= ${DISTDIR}/Developer
/Translations
18 host_alias
= @host_alias@
21 INSTALL_DATA
= @INSTALL_DATA@
32 VERSION
= $(shell cat
${top_srcdir}/version.ver
)
33 REVISION
= $(shell cat
$(top_srcdir
)/version.rev
)
35 USRARCHIVE
= $(host_alias
)-ahiusr-
$(VERSION
).
$(REVISION
).lha
36 USRREADME
= $(host_alias
)-ahiusr-
$(VERSION
).
$(REVISION
).readme
37 DEVARCHIVE
= $(host_alias
)-ahidev-
$(VERSION
).
$(REVISION
).lha
38 DEVREADME
= $(host_alias
)-ahidev-
$(VERSION
).
$(REVISION
).readme
42 ########################################
44 .PHONY
: all clean distclean maintainer-clean bindist revup
46 SUBDIRS
= AHI AddAudioModes Device Drivers Examples Include
48 ifneq (@CFLAG_RESIDENT@
,)
49 SUBDIRS
+= AHI-Handler
53 @cd Include
&& $(MAKE
) gcc-include
54 @for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) $(MFLAGS
) $@
) || exit
; done
57 @for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) $(MFLAGS
) $@
) || exit
; done
60 -@for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) $(MFLAGS
) $@
); done
61 $(RM
) $(USRARCHIVE
) $(USRREADME
) $(DEVARCHIVE
) $(DEVREADME
)
64 -@for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) $(MFLAGS
) $@
); done
65 $(RM
) $(USRARCHIVE
) $(USRREADME
) $(DEVARCHIVE
) $(DEVREADME
) \
66 config.log config.cache config.status config.h\
67 stamp-h stamp-h.in Makefile
70 -@for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) $(MFLAGS
) $@
); done
71 $(RM
) $(USRARCHIVE
) $(USRREADME
) $(DEVARCHIVE
) $(DEVREADME
) \
72 config.log config.cache config.status config.h\
73 stamp-h stamp-h.in Makefile \
78 $(INSTALL
) -d
$(DISTDIR
)
79 $(INSTALL_DATA
) ${srcdir}/COPYING
$(DISTDIR
)
80 $(INSTALL_DATA
) ${srcdir}/COPYING.LIB
$(DISTDIR
)
81 $(INSTALL_DATA
) ${srcdir}/COPYING.DRIVERS
$(DISTDIR
)
82 $(INSTALL_DATA
) ${srcdir}/ChangeLog
$(DISTDIR
)
84 $(INSTALL
) -d
$(CATDIR
) $(CATSRCDIR
)
85 $(INSTALL_DATA
) ${srcdir}/README.ATO
$(CATDIR
)
86 $(INSTALL_DATA
) ${srcdir}/README.ATO
$(CATSRCDIR
)
87 $(INSTALL_DATA
) ${srcdir}/README.TRANSLATIONS
$(CATDIR
)
88 $(INSTALL_DATA
) ${srcdir}/README.TRANSLATIONS
$(CATSRCDIR
)
90 cd Include
&& $(MAKE
) gcc-include
91 for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) $(MFLAGS
) $@
) || exit
; done
93 -$(RM
) $(USRARCHIVE
) $(DEVARCHIVE
)
95 pwd
=`pwd` bn
=`basename $(DISTDIR)` && \
96 ( cd
$(DISTDIR
)/..
&& $(LHA
) $${pwd}/$(DEVARCHIVE
) \
97 $${bn}/ahidev
* $${bn}/ChangeLog
$${bn}/COPYING
* $${bn}/Developer
)
98 cp
$(DISTDIR
)/ahidev.readme
$(DEVREADME
)
100 pwd
=`pwd` bn
=`basename $(DISTDIR)` && \
101 ( cd
$(DISTDIR
)/..
&& $(LHA
) $${pwd}/$(USRARCHIVE
) \
102 $${bn}/ahiusr
* $${bn}/ChangeLog
$${bn}/COPYING
* $${bn}/User
)
103 cp
$(DISTDIR
)/ahiusr.readme
$(USRREADME
)
108 @rev
=`cat $(srcdir)/version.rev` && echo
`expr $$rev + 1` > $(srcdir)/version.rev
109 @date
+%d.
%m.
%y
> $(srcdir)/version.date
110 @echo
-n
"New revision: "
111 @cat
$(srcdir)/version.rev
114 # Auto-remake autoconf stuff
115 ########################################
117 ${srcdir}/configure
: configure.in
118 cd
${srcdir} && autoconf
120 # autoheader might not change config.h.in, so touch a stamp file.
121 ${srcdir}/config.h.in
: stamp-h.in
122 ${srcdir}/stamp-h.in
: configure.in
123 cd
${srcdir} && autoheader
124 echo timestamp
> ${srcdir}/stamp-h.in
127 stamp-h
: config.h.in config.status
130 Makefile
: Makefile.in config.status
133 config.status
: configure
134 .
/config.status
--recheck