mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +00:00
71 lines
1.6 KiB
Makefile
71 lines
1.6 KiB
Makefile
srcdir = @srcdir@
|
|
top_builddir = .
|
|
|
|
HAVE_UDP = @HAVE_UDP@
|
|
|
|
ifeq ($(HAVE_UDP),yes)
|
|
SUBDIRS = common qw_client qw_server uquake
|
|
else
|
|
SUBDIRS = common uquake
|
|
endif
|
|
|
|
DESTDIR =
|
|
|
|
all: Makefile
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir $@ || exit; \
|
|
done
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
cd $(top_builddir) \
|
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
config.status: $(srcdir)/configure
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.in
|
|
(cd $(srcdir) && autoconf || true)
|
|
|
|
distclean:
|
|
rm -f config.cache config.log config.status Makefile
|
|
rm -f common/config.h
|
|
rm -f rpm/{rpmmacros,build_rpm,quakeforge-*.tar.gz,quakeforge.spec}
|
|
find . -name \*~ | xargs rm -f
|
|
find . -name \*.bak | xargs rm -f
|
|
find . -name '.#*' | xargs rm -f
|
|
find . -name '#*#' | xargs rm -f
|
|
find . -name core -type f | xargs rm -f
|
|
rm -rf targets
|
|
rm -rf rpm/{BUILD,SPECS,RPMS,SOURCES,SRPMS}
|
|
for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir $@ || exit; \
|
|
done
|
|
|
|
clean-autoconf mrproper: distclean
|
|
rm -f common/config.h.in Rules.mk
|
|
rm -f configure
|
|
|
|
%:
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir $@ || exit; \
|
|
done
|
|
|
|
|
|
changelog:
|
|
./tools/cvs2cl/cvs2cl.pl
|
|
|
|
# Code to automatically re-configure, only runs if you are compiling in the
|
|
# source directory
|
|
ifeq ($(srcdir),.)
|
|
configure: configure.in acconfig.h
|
|
./bootstrap
|
|
|
|
CONFIG_SRC = Makefile.in Rules.mk.in qw_client/Makefile.in \
|
|
qw_server/Makefile.in uquake/Makefile.in common/Makefile.in \
|
|
rpm/build_rpm.in rpm/quakeforge.spec.in
|
|
|
|
$(patsubst %.in,%,$(CONFIG_SRC)): configure $(CONFIG_SRC)
|
|
$(SHELL) ./config.status --recheck
|
|
$(SHELL) ./config.status
|
|
|
|
endif
|