Changeset 21373
- Timestamp:
- 2009-12-16T19:35:58+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gs2build/Makefile.in
r16592 r21373 47 47 ALLFILES = $(OBJECTS) 48 48 49 SPECIAL_COMPILEDIRS = common-src 50 COMPILEDIRS = build-src runtime-src 49 51 50 COMPILEDIRS = common-src build-src 51 52 INSTALLDIRS = common-src build-src 52 SPECIAL_INSTALLDIRS = common-src 53 INSTALLDIRS = build-src runtime-src 53 54 54 55 MODULEDIRS = @MODULEDIRS@ 55 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 56 63 57 # we don't want to compile the jni stuff in indexers for gs2 58 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: 75 for odir in $(SPECIAL_COMPILEDIRS); do \ 76 if test -d $$odir; then \ 77 echo making $(COMPILE_TARGET) in $$odir; \ 78 (cd $$odir && $(MAKE) $(MDEFINES) $(COMPILE_TARGET)) || exit 1; \ 79 fi; \ 80 done 59 81 for odir in $(COMPILEDIRS) $(MODULEDIRS); do \ 60 echo making $@ in $$odir; \ 61 (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; \ 62 86 done 63 87 64 install: all 88 install-with-jni install-without-jni: all 89 for idir in $(SPECIAL_INSTALLDIRS); do \ 90 if test -d $$idir; then \ 91 echo installing $$idir $(COMPILE_TARGET); \ 92 (cd $$idir && $(MAKE) install-$(COMPILE_TARGET)) || exit 1; \ 93 fi; \ 94 done 65 95 for idir in $(INSTALLDIRS); do \ 66 echo installing $$idir; \ 67 (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; \ 68 100 done 101 102 apache-for-dist: 103 if test -d runtime-src; then \ 104 (cd runtime-src/packages && $(MAKE) apache-for-dist) || exit 1; \ 105 fi 106 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 69 110 70 111 distclean: clean 71 112 rm -f Makefile config.cache config.h config.log stamp-h config.status 72 for subdir in $(COMPILEDIRS); do \ 73 echo cleaning $@ in $$subdir; \ 74 (cd $$subdir && $(MAKE) distclean) || exit 1; \ 113 for subdir in $(SPECIAL_COMPILEDIRS) $(COMPILEDIRS); do \ 114 if test -d $$subdir; then \ 115 echo cleaning $@ in $$subdir; \ 116 (cd $$subdir && $(MAKE) distclean) || exit 1; \ 117 fi; \ 75 118 done 76 119 77 120 clean: 78 for subdir in $(COMPILEDIRS); do \ 79 echo cleaning $@ in $$subdir; \ 80 (cd $$subdir && $(MAKE) clean) || exit 1; \ 121 for subdir in $(SPECIAL_COMPILEDIRS) $(COMPILEDIRS); do \ 122 if test -d $$subdir; then \ 123 echo cleaning $@ in $$subdir; \ 124 (cd $$subdir && $(MAKE) clean) || exit 1; \ 125 fi; \ 81 126 done 82 127
Note:
See TracChangeset
for help on using the changeset viewer.