File: Imakefile

package info (click to toggle)
plotmtv 1.4.4t-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,964 kB
  • ctags: 5,420
  • sloc: ansic: 55,108; makefile: 1,995; fortran: 1,277; sh: 510; csh: 439
file content (60 lines) | stat: -rw-r--r-- 1,726 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
# @(#)Imakefile 1/20/94
#
# Imakefile - Plotmtv V1.4.1 Top Level 
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted,
# provided that the above copyright notice appear in all copies and that
# both that copyright notice and this permission notice appear in
# supporting documentation.
#
# This file is provided AS IS with no warranties of any kind.  The author
# shall have no liability with respect to the infringement of copyrights,
# trade secrets or any patents by this file or any part thereof.  In no
# event will the author be liable for any lost revenue or profits or
# other special, indirect and consequential damages.
#
#

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

    CDEBUGFLAGS = -O
#        DEFINES = -DPRINTER_NAME=\"lw_geo\" -DPRINTER_CMD=\"lpr\ -h\"
        DEFINES = -DPRINTER_NAME=\"lp1\" -DPRINTER_CMD=\"lpr\"
    PROGRAMDIRS = Lib Plot
   UTILITIESDIR = Utils
    LOCALBINDIR = ./Bin
        SUBDIRS = $(PROGRAMDIRS) $(UTILITIESDIR)

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

MakeDirectories(install.local, $(LOCALBINDIR))

World::
	@echo ""
	@echo "Building Plotmtv Version 1.4.1"
	@echo ""
	@date
	@echo ""
	-$(MV) Makefile Makefile.bak
	$(MAKE) -f Makefile.bak Makefile
	$(MAKE) Makefiles
	$(MAKE) clean
	$(MAKE) $(WORLDOPTS)
	$(MAKE) install.local
	@echo ""
	@date
	@echo ""
	@echo "Full build of Plotmtv Version 1.4.1 complete."
	@echo ""

install.local::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.local); \
	done