1999-12-29 13:58:47 +00:00
|
|
|
SUBDIRS = qw_client qw_server uquake
|
1999-12-30 23:50:31 +00:00
|
|
|
SRC_DIR = @srcdir@
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
@for dir in $(SUBDIRS); do \
|
1999-12-30 23:50:31 +00:00
|
|
|
$(MAKE) -C $$dir $@ || exit; \
|
1999-12-29 13:58:47 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
distclean:
|
1999-12-30 13:40:47 +00:00
|
|
|
rm -f config.cache config.log config.status Makefile
|
1999-12-31 23:03:00 +00:00
|
|
|
rm -f common/config.h
|
2000-01-01 08:10:02 +00:00
|
|
|
find . -name \*~ | xargs rm -f
|
1999-12-29 13:58:47 +00:00
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir $@ || exit; \
|
|
|
|
done
|
|
|
|
|
2000-01-01 08:10:02 +00:00
|
|
|
clean-autoconf mrproper: distclean
|
|
|
|
rm -f configure
|
|
|
|
|
1999-12-29 13:58:47 +00:00
|
|
|
%:
|
|
|
|
@for dir in $(SUBDIRS); do \
|
1999-12-30 23:50:31 +00:00
|
|
|
$(MAKE) -C $$dir $@ || exit; \
|
1999-12-29 13:58:47 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Code to automatically re-configure, only runs if you are compiling in the
|
|
|
|
# source directory
|
|
|
|
ifeq ($(SRC_DIR),.)
|
|
|
|
configure: configure.in
|
1999-12-30 23:50:31 +00:00
|
|
|
autoconf
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
Makefile: Makefile.in configure
|
1999-12-30 23:50:31 +00:00
|
|
|
./configure
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
qw_client/Makefile: qw_client/Makefile.in configure
|
1999-12-30 23:50:31 +00:00
|
|
|
./configure
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
qw_server/Makefile: qw_server/Makefile.in configure
|
1999-12-30 23:50:31 +00:00
|
|
|
./configure
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
uquake/Makefile: uquake/Makefile.in configure
|
1999-12-30 23:50:31 +00:00
|
|
|
./configure
|
1999-12-29 13:58:47 +00:00
|
|
|
endif
|