Changeset 2833 for trunk/Ohana/Makefile
- Timestamp:
- Dec 27, 2004, 2:30:56 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/Makefile
r2631 r2833 72 72 LIBS-lin64 = libfits libohana libdummy 73 73 LIBS-sid = libfits libohana libdummy 74 LIBS-sol = libfits libohana 74 75 75 76 # general build targets: 76 77 libs: 78 @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi 79 @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi 77 80 mkdir -p $(LINC) 78 81 mkdir -p $(LLIB) … … 90 93 91 94 clean: 95 @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi 96 @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi 92 97 for i in $(LIBS-$(ARCH)); do make $$i.clean || exit; done 93 98 for i in $(PROGRAM); do make $$i.clean || exit; done … … 95 100 96 101 dist: 102 @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi 103 @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi 97 104 for i in $(LIBS-$(ARCH)); do make $$i.dist || exit; done 98 105 for i in $(PROGRAM); do make $$i.dist || exit; done 99 106 100 107 install: 108 @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi 109 @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi 101 110 for i in $(LIBS-$(ARCH)); do make $$i.install || exit; done 102 111 for i in $(PROGRAM); do make $$i.install || exit; done … … 107 116 # standard rules: targets are foo, foo.clean, foo.install, foo.dist 108 117 $(PROGRAM) $(LIBS-$(ARCH)) $(EXTRAS): 109 if [ - e"src/$@" ]; then (cd src/$@ && make); fi118 if [ -d "src/$@" ]; then (cd src/$@ && make); fi 110 119 111 120 %.install: 112 121 mkdir -p bin/$(ARCH) 113 if [ - e"src/$*" ]; then (cd src/$* && make install); fi122 if [ -d "src/$*" ]; then (cd src/$* && make install); fi 114 123 115 124 %.clean: 116 if [ - e"src/$*" ]; then (cd src/$* && make clean); fi125 if [ -d "src/$*" ]; then (cd src/$* && make clean); fi 117 126 118 127 %.dist:
Note:
See TracChangeset
for help on using the changeset viewer.
