1999-12-30 23:50:31 +00:00
|
|
|
SRC_DIR = @srcdir@
|
2000-01-07 01:13:47 +00:00
|
|
|
HAVE_UDP = @HAVE_UDP@
|
|
|
|
|
|
|
|
ifeq ($(HAVE_UDP),yes)
|
2000-01-27 17:06:02 +00:00
|
|
|
SUBDIRS = common qw_client qw_server uquake
|
2000-01-07 01:13:47 +00:00
|
|
|
else
|
2000-01-27 17:06:02 +00:00
|
|
|
SUBDIRS = common uquake
|
2000-01-07 01:13:47 +00:00
|
|
|
endif
|
1999-12-29 13:58:47 +00:00
|
|
|
|
2000-01-03 08:03:01 +00:00
|
|
|
DESTDIR =
|
|
|
|
|
2000-01-04 03:26:19 +00:00
|
|
|
ANONCVS=:pserver:anonymous@cvs.quake.sourceforge.net:/cvsroot/quake
|
|
|
|
|
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:
|
2000-03-06 13:41:55 +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-18 05:42:04 +00:00
|
|
|
rm -f build_rpm quakeforge-*.tar.gz quakeforge.spec
|
2000-01-01 08:10:02 +00:00
|
|
|
find . -name \*~ | xargs rm -f
|
2000-01-01 20:45:27 +00:00
|
|
|
find . -name \*.bak | xargs rm -f
|
2000-01-19 10:41:18 +00:00
|
|
|
find . -name '.#*' | xargs rm -f
|
|
|
|
find . -name '#*#' | xargs rm -f
|
|
|
|
find . -name core -type f | xargs rm -f
|
|
|
|
rm -rf targets
|
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
|
2000-03-06 13:41:55 +00:00
|
|
|
rm -f common/config.h.in Rules.mk
|
2000-01-01 08:10:02 +00:00
|
|
|
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; \
|
2000-01-04 04:38:05 +00:00
|
|
|
done
|
2000-01-07 01:13:47 +00:00
|
|
|
|
|
|
|
|
2000-01-04 03:26:19 +00:00
|
|
|
changelog:
|
|
|
|
@echo "CVS will ask for a passwd, press enter"
|
|
|
|
cvs -d$(ANONCVS) login
|
|
|
|
./tools/cvs2cl/cvs2cl.pl -g -d$(ANONCVS)
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
# Code to automatically re-configure, only runs if you are compiling in the
|
|
|
|
# source directory
|
|
|
|
ifeq ($(SRC_DIR),.)
|
2000-01-03 08:03:01 +00:00
|
|
|
configure: configure.in acconfig.h
|
|
|
|
./bootstrap
|
1999-12-29 13:58:47 +00:00
|
|
|
|
2000-01-29 11:59:09 +00:00
|
|
|
CONFIG_SRC = Makefile.in qw_client/Makefile.in qw_server/Makefile.in \
|
2000-01-29 12:03:26 +00:00
|
|
|
uquake/Makefile.in common/Makefile.in \
|
|
|
|
rpm/build_rpm.in rpm/quakeforge.spec.in
|
2000-01-29 11:59:09 +00:00
|
|
|
|
|
|
|
$(patsubst %.in,%,$(CONFIG_SRC)): configure $(CONFIG_SRC)
|
2000-01-19 06:13:46 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(SHELL) ./config.status
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
endif
|