1 XCOMM $TOG: Imakefile /main/22 1999/01/18 10:38:29 samborn $
3 #define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
7 SUBDIRS = config util logs include lib programs databases admin
8 DOCSUBDIRS = config doc
10 MakeSubdirs($(SUBDIRS))
12 DependSubdirs($(SUBDIRS))
14 #define IHaveSpecialMakefileTarget
16 ImakeDependency(xmakefile)
18 RMoveToBakFile(xmakefile)
19 $(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
24 @echo Building on OSName.
28 MakeDir($(BUILDINCDIR))
31 XCOMM Watch out!!! Make sure you do make includes after removing X11....
34 $(RM) -r $(BUILDINCDIR)
35 $(RM) -r $(BUILDLIBDIR)
38 MAKE_OPTS = -f xmakefile
41 XCOMM install; create the directories that we're going to need
44 DIRS_TO_CREATE = $(USRLIBDIR) $(BINDIR) $(INCDIR) $(USRINCDIR) $(LIBDIR) $(XAPPLOADDIR)
46 MakeDirectories(install, $(DIRS_TO_CREATE))
49 XCOMM Everything builds everything in the SUBDIRS directories
54 @echo "Rebuilding Release $(CDE_RELEASE) of CDE"
59 -$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
60 $(MAKE) $(MFLAGS) -f xmakefile.bak xmakefile
61 $(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
62 $(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles.doc
63 $(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
64 $(MAKE) $(MFLAGS) $(MAKE_OPTS) includes.doc
65 $(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
66 $(MAKE) $(MFLAGS) $(MAKE_OPTS) depend.doc
67 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
68 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS) all.doc
72 @echo "Rebuild of Release $(CDE_RELEASE) of CDE complete."
77 @echo "Rebuilding Release $(CDE_RELEASE) of CDE excluding DOC"
82 -$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
83 $(MAKE) $(MFLAGS) -f xmakefile.bak xmakefile
84 $(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
85 $(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
86 $(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
87 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
91 @echo "Rebuild of Release $(CDE_RELEASE) of CDE excluding DOC complete."
94 XCOMM clean out link tree looking for stuff that should get checked in
95 dangerous_strip_clean::
96 make -k clean clean.doc
97 find . -type l -exec rm {} \;
98 find . \( \! \( -type d -o -name Makefile \) \) -print
100 XCOMM special target to determine if the xmakefile exists.
101 XCOMM Works on both Unix and NMAKE.EXE
106 XCOMM Everything.doc builds everything in the DOCSUBDIRS directories
111 @echo "Rebuilding Release $(CDE_RELEASE) of DOC"
116 -$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
117 $(MAKE) $(MFLAGS) -f xmakefile.bak xmakefile
118 $(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles.doc
119 $(MAKE) $(MFLAGS) $(MAKE_OPTS) includes.doc
120 $(MAKE) $(MFLAGS) $(MAKE_OPTS) depend.doc
121 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS) all.doc
125 @echo "Rebuild of Release $(CDE_RELEASE) of DOC complete."
128 NamedTargetSubdirs(install.doc,$(DOCSUBDIRS),"installing",DESTDIR=$(DESTDIR),install)
129 NamedTargetSubdirs(install.man.doc,$(DOCSUBDIRS),"installing man pages",DESTDIR=$(DESTDIR),install.man)
130 NamedCleanSubdirs(clean.doc,$(DOCSUBDIRS))
131 NamedTagSubdirs(tags.doc,$(DOCSUBDIRS))
132 MakeMakeSubdirs($(DOCSUBDIRS),Makefiles.doc)
133 NamedTargetSubdirs(includes.doc,$(DOCSUBDIRS),including,NullParameter,includes)
134 NamedTargetSubdirs(depend.doc,$(DOCSUBDIRS),depending,NullParameter,depend)
135 NamedMakeSubdirs(all.doc, $(DOCSUBDIRS))