Skip to content
Snippets Groups Projects
Commit 05d12524 authored by edgrif's avatar edgrif
Browse files

tinkering only

parent b4a47ceb
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,12 @@
# Add directories to this list as they are sorted out.
MAKE_DIRS = zmapmanager
all: platform
all: makebindir
@for d in $(MAKE_DIRS); do \
(cd $$d ; echo ; echo 'make '$@' in '$$d ; $(MAKE) $@ ; echo) ; \
done
clean: forcemake platform
clean:
@for d in $(MAKE_DIRS); do \
(cd $$d ; echo ; echo 'make '$@' in '$$d ; $(MAKE) $@ ; echo) ; \
done
......@@ -26,6 +26,38 @@ clean: forcemake platform
# some of its own commonly used rules.
#
ROOT_DIRECTORY = .
MAKEDEFS_DIR = $(ROOT_DIRECTORY)/zmapMake
include $(MAKEDEFS_DIR)/common.make
include $(MAKEDEFS_FILE)
MAKE_DIR = $(ROOT_DIRECTORY)/zmapMake
include $(MAKE_DIR)/common.make
# actually this is all more trouble than its worth really...it would be better
# to have it in a build script really or a totally separate make file...as is
# done in acedb....Think about how to do this more elegantly...
#
# Dependency used by all makes to check that environment variable ZMAP_PLATFORM
# has been set and that the platform defs file actually exists in the make
# defs directory.
#
platform:
@if [ "$(ZMAP_PLATFORM)" -a -f $(MAKEDEFS_FILE) ] ; \
then \
if test ! -d $(BINDIR) ; \
then \
echo ; \
echo "making "$(BINDIR)" directory" ; \
mkdir $(BINDIR) ; \
fi \
else \
echo ; \
echo 'To compile you must set the environment variable "ZMAP_PLATFORM"' ; \
echo 'to one of the following:' ; \
echo ; cd $(MAKEDEFS_DIR) ; \
for i in `ls *$(MAKEDEFS_SUFFIX)` ; do \
echo `basename $$i $(MAKEDEFS_SUFFIX)` ; \
done ; \
echo ; exit 1 ; \
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment