Changeset 21366 for main/trunk/greenstone2/Makefile.in
- Timestamp:
- 2009-12-16T14:11:07+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/Makefile.in
r19262 r21366 55 55 MODULEDIRS = @MODULEDIRS@ 56 56 57 ENABLE_JNI=@ENABLE_JNI@ 58 ifeq ($(ENABLE_JNI), 1) 59 COMPILE_TARGET=with-jni 60 else 61 COMPILE_TARGET=without-jni 62 endif 57 63 58 # we don't want to compile the jni stuff in indexers for gs2 59 all: 64 65 # with some compilers, just calling another target is insufficient 66 # so an extra echo stmt is added after each call to another target 67 all: $(COMPILE_TARGET) 68 @echo "Compile done" 69 70 install: install-$(COMPILE_TARGET) 71 @echo "Install done" 72 73 74 with-jni without-jni: 60 75 for odir in $(SPECIAL_COMPILEDIRS); do \ 61 echo making gs2 in $$odir; \ 62 (cd $$odir && $(MAKE) $(MDEFINES) gs2) || exit 1; \ 76 if test -d $$odir; then \ 77 echo making $(COMPILE_TARGET) in $$odir; \ 78 (cd $$odir && $(MAKE) $(MDEFINES) $(COMPILE_TARGET)) || exit 1; \ 79 fi; \ 63 80 done 64 81 for odir in $(COMPILEDIRS) $(MODULEDIRS); do \ 65 echo making $@ in $$odir; \ 66 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \ 82 if test -d $$odir; then \ 83 echo making all in $$odir; \ 84 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \ 85 fi; \ 67 86 done 68 87 69 install : all88 install-with-jni install-without-jni: all 70 89 for idir in $(SPECIAL_INSTALLDIRS); do \ 71 echo installing $$idir; \ 72 (cd $$idir && $(MAKE) install-gs2) || exit 1; \ 90 if test -d $$idir; then \ 91 echo installing $$idir $(COMPILE_TARGET); \ 92 (cd $$idir && $(MAKE) install-$(COMPILE_TARGET)) || exit 1; \ 93 fi; \ 73 94 done 74 95 for idir in $(INSTALLDIRS); do \ 75 echo installing $$idir; \ 76 (cd $$idir && $(MAKE) install) || exit 1; \ 96 if test -d $$idir; then \ 97 echo installing $$idir; \ 98 (cd $$idir && $(MAKE) install) || exit 1; \ 99 fi; \ 77 100 done 78 101 79 102 apache-for-dist: 80 (cd runtime-src/packages && $(MAKE) apache-for-dist) || exit 1; 103 if test -d runtime-src; then \ 104 (cd runtime-src/packages && $(MAKE) apache-for-dist) || exit 1; \ 105 fi 81 106 82 # include the Greenstone Server Interface Makefile here 83 include GSI-Makefile 107 # For GS2: include the Greenstone Server Interface Makefile here 108 # http://www.makelinux.net/make3/make3-CHP-3-SECT-7.html 109 sinclude GSI-Makefile 84 110 85 111 distclean: clean 86 112 rm -f Makefile config.cache config.h config.log stamp-h config.status 87 113 for subdir in $(SPECIAL_COMPILEDIRS) $(COMPILEDIRS); do \ 88 echo cleaning $@ in $$subdir; \ 89 (cd $$subdir && $(MAKE) distclean) || exit 1; \ 114 if test -d $$subdir; then \ 115 echo cleaning $@ in $$subdir; \ 116 (cd $$subdir && $(MAKE) distclean) || exit 1; \ 117 fi; \ 90 118 done 91 119 92 120 clean: 93 121 for subdir in $(SPECIAL_COMPILEDIRS) $(COMPILEDIRS); do \ 94 echo cleaning $@ in $$subdir; \ 95 (cd $$subdir && $(MAKE) clean) || exit 1; \ 122 if test -d $$subdir; then \ 123 echo cleaning $@ in $$subdir; \ 124 (cd $$subdir && $(MAKE) clean) || exit 1; \ 125 fi; \ 96 126 done 97 127
Note:
See TracChangeset
for help on using the changeset viewer.