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)
|
|
|
|
SUBDIRS = qw_client qw_server uquake
|
|
|
|
else
|
|
|
|
SUBDIRS = uquake
|
|
|
|
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:
|
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-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
|
2000-01-23 00:52:07 +00:00
|
|
|
rm -rf rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS,build_rpm,quakeforge.spec,rpmmacros}
|
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-01-01 20:45:27 +00:00
|
|
|
rm -f common/config.h.in
|
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-03 08:03:01 +00:00
|
|
|
Makefile: Makefile.in configure \
|
|
|
|
qw_client/Makefile qw_server/Makefile uquake/Makefile
|
2000-01-19 06:13:46 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(SHELL) ./config.status
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
qw_client/Makefile: qw_client/Makefile.in configure
|
2000-01-19 06:13:46 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(SHELL) ./config.status
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
qw_server/Makefile: qw_server/Makefile.in configure
|
2000-01-19 06:13:46 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(SHELL) ./config.status
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
uquake/Makefile: uquake/Makefile.in configure
|
2000-01-19 06:13:46 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(SHELL) ./config.status
|
1999-12-29 13:58:47 +00:00
|
|
|
endif
|