File: Imakefile

package info (click to toggle)
x11iraf 1.1-5
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 11,064 kB
  • ctags: 12,544
  • sloc: ansic: 121,421; makefile: 1,362; fortran: 1,236; perl: 549; yacc: 247; tcl: 199; lex: 125; lisp: 88; csh: 65; sh: 23; sed: 6
file content (64 lines) | stat: -rw-r--r-- 1,739 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
XCOMM  Imakefile for the X11IRAF Source Tree
XCOMM
XCOMM  Mike Fitzpatrick, National Optical Astronomy Observatories, IRAF project.
XCOMM  Aug 9 1996

#include <X11IRAF.tmpl>

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

XCOMM LIBDIRS 	= obm xaw3d xpm
LIBDIRS		= obm
APPDIRS 	= xgterm ximtool xtapemon obmsh vximtool
SUBDIRS 	= $(LIBDIRS) $(APPDIRS)

World::
	@echo "Building the X11IRAF V1.1 software tree"
	@echo "" ; date ; echo ""
	MakeDir (include)
	MakeDir (lib)
	MakeDir (bin)
	MakeDir (app-defaults)
	$(MAKE) $(MFLAGS) Makefiles X11IRAFDIR=$$PWD
	$(MAKE) $(MFLAGS) clean	    X11IRAFDIR=$$PWD
	$(MAKE) $(MFLAGS) includes  X11IRAFDIR=$$PWD
	$(MAKE) $(MFLAGS) depend    X11IRAFDIR=$$PWD
	$(MAKE) $(MFLAGS) libs      X11IRAFDIR=$$PWD
	$(MAKE) $(MFLAGS) apps	    X11IRAFDIR=$$PWD
	$(MAKE) $(MFLAGS) install   X11IRAFDIR=$$PWD
	@echo "" ; date ; echo ""
	@echo "Done."

libs::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(LIBDIRS) ;\
	do \
	(cd $$i ; echo "making" linklibs "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' linklibs); \
	done

apps::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(APPDIRS) ;\
	do \
	(cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all); \
	done

bindist::
	(cd ximtool ; make alt-install)
	@tar -cf bin.tar bin app-defaults man

archive::
	$(MAKE) $(MFLAGS) pristine
	@tar -cvf - . | gzip > ../x11iraf.tar.gz

pristine::
	$(MAKE) $(MFLAGS) clean	    X11IRAFDIR=$$PWD
	$(RM) -rf bin bin.tar* include lib app-defaults man spool* Makefile\
	  Makefile.bak */Makefile */Makefile.bak */*/Makefile */*/Makefile.bak

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))