libextractor-mono

GNU libextractor
Log | Files | Refs | LICENSE

Makefile (2056B)


      1 
      2 EXTRA_DIST =  rules.make configure Makefile.include
      3 
      4 all: all-recursive
      5 
      6 top_srcdir=.
      7 include $(top_srcdir)/config.make
      8 include $(top_srcdir)/Makefile.include
      9 include $(top_srcdir)/rules.make
     10 
     11 #include $(top_srcdir)/custom-hooks.make
     12 
     13 #Warning: This is an automatically generated file, do not edit!
     14 ifeq ($(CONFIG),DEBUG)
     15  SUBDIRS =  LibExtractor
     16 endif
     17 ifeq ($(CONFIG),RELEASE)
     18  SUBDIRS =  LibExtractor
     19 endif
     20 
     21 
     22 CONFIG_MAKE=$(top_srcdir)/config.make
     23 
     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
     37 
     38 $(CONFIG_MAKE):
     39 	echo "You must run configure first"
     40 	exit 1
     41 
     42 clean: clean-recursive
     43 install: install-recursive
     44 uninstall: uninstall-recursive
     45 
     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 "=========================================="
     66 
     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