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