52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
|
include rules
|
||
|
subdirs = src doc pixmaps po data
|
||
|
SHELL = /bin/sh
|
||
|
|
||
|
srcdir = @srcdir@
|
||
|
|
||
|
all:
|
||
|
@for dir in ${subdirs}; do \
|
||
|
(cd $$dir && $(MAKE) all) \
|
||
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
||
|
done && test -z "$$fail"
|
||
|
|
||
|
install:
|
||
|
@for dir in ${subdirs}; do \
|
||
|
(cd $$dir && $(MAKE) install) \
|
||
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
||
|
done && test -z "$$fail"
|
||
|
|
||
|
clean:
|
||
|
/bin/rm -f *~
|
||
|
@for dir in ${subdirs}; do \
|
||
|
(cd $$dir && $(MAKE) clean) \
|
||
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
||
|
done && test -z "$$fail"
|
||
|
|
||
|
distclean:
|
||
|
@for dir in ${subdirs}; do \
|
||
|
(cd $$dir && $(MAKE) distclean) \
|
||
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
||
|
done && test -z "$$fail"
|
||
|
/bin/rm -f Makefile config.h config.status config.cache config.log intltool-extract intltool-merge intltool-update rules configure aclocal.m4
|
||
|
/bin/rm -rf autom4te.cache/
|
||
|
|
||
|
# automatic re-running of configure if the configure.in file has changed
|
||
|
${srcdir}/configure: configure.in aclocal.m4
|
||
|
cd ${srcdir} && autoconf
|
||
|
|
||
|
# autoheader might not change config.h.in, so touch a stamp file
|
||
|
${srcdir}/config.h.in: stamp-h.in
|
||
|
${srcdir}/stamp-h.in: configure.in aclocal.m4
|
||
|
cd ${srcdir} && autoheader
|
||
|
echo timestamp > ${srcdir}/stamp-h.in
|
||
|
|
||
|
config.h: stamp-h
|
||
|
stamp-h: config.h.in config.status
|
||
|
./config.status
|
||
|
Makefile: Makefile.in config.status
|
||
|
./config.status
|
||
|
config.status: configure
|
||
|
./config.status --recheck
|
||
|
|