2000-03-13 11:54:24 +00:00
|
|
|
srcdir = @srcdir@
|
2000-03-19 15:22:28 +00:00
|
|
|
top_builddir = .
|
|
|
|
|
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-03-19 15:22:28 +00:00
|
|
|
all: Makefile
|
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
|
|
|
|
|
|
|
|
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-03-14 03:39:39 +00:00
|
|
|
rm -f rpm/{rpmmacros,build_rpm,quakeforge-*.tar.gz,quakeforge.spec}
|
2000-03-25 12:26:46 +00:00
|
|
|
rm -rf rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
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-03-14 03:39:39 +00:00
|
|
|
rm -rf rpm/{BUILD,SPECS,RPMS,SOURCES,SRPMS}
|
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:
|
2000-03-08 11:24:08 +00:00
|
|
|
./tools/cvs2cl/cvs2cl.pl
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
# Code to automatically re-configure, only runs if you are compiling in the
|
|
|
|
# source directory
|
2000-03-27 04:00:04 +00:00
|
|
|
|
|
|
|
config.status: $(srcdir)/configure
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/acconfig.h
|
|
|
|
(cd $(srcdir) && ./bootstrap || true)
|
1999-12-29 13:58:47 +00:00
|
|
|
|
2000-03-13 11:54:24 +00:00
|
|
|
CONFIG_SRC = Makefile.in Rules.mk.in qw_client/Makefile.in \
|
|
|
|
qw_server/Makefile.in uquake/Makefile.in common/Makefile.in \
|
2000-01-29 12:03:26 +00:00
|
|
|
rpm/build_rpm.in rpm/quakeforge.spec.in
|
2000-01-29 11:59:09 +00:00
|
|
|
|
2000-03-27 04:00:04 +00:00
|
|
|
$(patsubst %.in,%,$(CONFIG_SRC)): configure $(patsubst %.in,$(srcdir)/%.in,$(CONFIG_SRC))
|
2000-01-19 06:13:46 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(SHELL) ./config.status
|