* Makefile.am:
[monodevelop.git] / extras / PyBinding / Makefile
blob18396363f02f7e05d076b3b059c2c9507141a635
2 EXTRA_DIST = 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 = PyBinding
16 endif
17 ifeq ($(CONFIG),RELEASE)
18 SUBDIRS = PyBinding
19 endif
22 CONFIG_MAKE=$(top_srcdir)/config.make
24 %-recursive: $(CONFIG_MAKE)
25 @set . $$MAKEFLAGS; final_exit=:; \
26 case $$2 in --unix) shift ;; esac; \
27 case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
28 make pre-$*-hook prefix=$(prefix) ; \
29 for dir in $(call quote_each,$(SUBDIRS)); do \
30 case "$$dir" in \
31 .) make $*-local || { final_exit="exit 1"; $$dk; };;\
32 *) (cd "$$dir" && make $*) || { final_exit="exit 1"; $$dk; };;\
33 esac \
34 done; \
35 make post-$*-hook prefix=$(prefix) ; \
36 $$final_exit
38 $(CONFIG_MAKE):
39 echo "You must run configure first"
40 exit 1
42 clean: clean-recursive
43 install: install-recursive
44 uninstall: uninstall-recursive
46 dist: $(CONFIG_MAKE)
47 rm -rf $(PACKAGE)-$(VERSION)
48 mkdir $(PACKAGE)-$(VERSION)
49 make pre-dist-hook distdir=$$distdir
50 for dir in $(call quote_each,$(SUBDIRS)); do \
51 pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
52 mkdir "$$pkgdir/$$dir" || true; \
53 case $$dir in \
54 .) make dist-local "distdir=$$pkgdir" || exit 1;; \
55 *) (cd "$$dir"; make dist-local "distdir=$$pkgdir/$$dir") || exit 1;; \
56 esac \
57 done
58 (make dist-local distdir=$(PACKAGE)-$(VERSION))
59 make
60 make post-dist-hook "distsir=$$distdir"
61 tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
62 rm -rf $(PACKAGE)-$(VERSION)
63 @echo "=========================================="
64 @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
65 @echo "=========================================="
67 distcheck: dist
68 (mkdir test; cd test; \
69 tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
70 ./configure --prefix=$$(cd `pwd`/..; pwd); \
71 make && make install && make dist);
72 rm -rf test