Makefile
author Scott Ehlert <ds@alliedmods.net>
Thu Sep 26 17:00:32 2013 -0500 (2013-09-26)
changeset 284 ca90ccdb8d49
parent 0 d15304fcb7a7
permissions -rw-r--r--
Fixed makefile error when issuing 'make clean' or 'make distclean'.
darope@0
     1
# vi: set ts=4 sw=4 :
darope@0
     2
# vim: set tw=75 :
darope@0
     3
darope@0
     4
# MetaMod toplevel makefile
darope@0
     5
# Copyright (c) 2001-2003 Will Day <[email protected]>
darope@0
     6
#
darope@0
     7
# some sections as demonstated in GNU's make.info documentation
darope@0
     8
darope@0
     9
include Config.mak
darope@0
    10
darope@0
    11
ifeq "$(USER)" "willday"
darope@0
    12
include priv/top.mak
darope@0
    13
endif
darope@0
    14
darope@0
    15
.DEFAULT:
darope@0
    16
	for i in $(SUBDIRS); do \
darope@0
    17
		$(MAKE) -C $$i $@ || exit; \
darope@0
    18
	done
darope@0
    19
darope@0
    20
.PHONY:	subdirs dlls $(SUBDIRS)
darope@0
    21
darope@0
    22
subdirs: $(SUBDIRS)
darope@0
    23
darope@0
    24
$(SUBDIRS):
darope@0
    25
	$(MAKE) -C $@
darope@0
    26
darope@0
    27
clean cleanall:
darope@0
    28
	for i in $(SUBDIRS); do \
darope@0
    29
		$(MAKE) -C $$i cleanall || exit; \
darope@0
    30
	done
ds@284
    31
	-rm -f dlls/*.* dlls/debug/*.*