Initial Commit
[wakedown.gameserver.git] / Makefile
blob8ce0acc1c4ed063ff926fe0b3b46fdc335d6ffd3
2 EXTRA_DIST = GameServer.make rules.make configure Makefile.include dll/Db4objects.Db4o.dll
4 all: all-recursive
6 top_srcdir=.
7 include $(top_srcdir)/config.make
8 include $(top_srcdir)/rules.make
10 #include $(top_srcdir)/custom-hooks.make
12 #Warning: This is an automatically generated file, do not edit!
13 ifeq ($(CONFIG),DEBUG)
14 SUBDIRS = . .
15 endif
16 ifeq ($(CONFIG),RELEASE)
17 SUBDIRS = . .
18 endif
20 # Include project specific makefile
21 include GameServer.make
23 CONFIG_MAKE=$(top_srcdir)/config.make
25 %-recursive: $(CONFIG_MAKE)
26 @set . $$MAKEFLAGS; final_exit=:; \
27 case $$2 in --unix) shift ;; esac; \
28 case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
29 make pre-$*-hook prefix=$(prefix)
30 for dir in $(SUBDIRS); do \
31 case $$dir in \
32 .) make $*-local || { final_exit="exit 1"; $$dk; };;\
33 *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
34 esac \
35 done
36 make post-$*-hook prefix=$(prefix)
37 $$final_exit
39 $(CONFIG_MAKE):
40 echo "You must run configure first"
41 exit 1
43 clean: clean-recursive
44 install: install-recursive
45 uninstall: uninstall-recursive
47 dist: $(CONFIG_MAKE)
48 rm -rf $(PACKAGE)-$(VERSION)
49 mkdir $(PACKAGE)-$(VERSION)
50 make pre-dist-hook distdir=$$distdir
51 for dir in $(SUBDIRS); do \
52 pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
53 mkdir $$pkgdir/$$dir || true; \
54 case $$dir in \
55 .) make dist-local distdir=$$pkgdir || exit 1;; \
56 *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \
57 esac \
58 done
59 (make dist-local distdir=$(PACKAGE)-$(VERSION))
60 make
61 make post-dist-hook distsir=$$distdir
62 tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
63 rm -rf $(PACKAGE)-$(VERSION)
64 @echo "=========================================="
65 @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
66 @echo "=========================================="
68 distcheck: dist
69 (mkdir test; cd test; \
70 tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
71 ./configure --prefix=$$(cd `pwd`/..; pwd); \
72 make && make install && make dist);
73 rm -rf test