File: Imakefile

package info (click to toggle)
xmhtml 1.1.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,296 kB
  • sloc: ansic: 70,372; makefile: 480; sh: 176; perl: 36
file content (126 lines) | stat: -rw-r--r-- 3,437 bytes parent folder | download | duplicates (5)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#error The Imakefile is broken, please use the plain Makefiles

#if 0

XCOMM
XCOMM Imakefile for XmHTML
XCOMM
XCOMM (C)Copyright 1995-1997 Ripley Software Development
XCOMM All Rights Reserved
XCOMM
XCOMM This file is part of the XmHTML Widget Library.
XCOMM
XCOMM This library is free software; you can redistribute it and/or
XCOMM modify it under the terms of the GNU Library General Public
XCOMM License as published by the Free Software Foundation; either
XCOMM version 2 of the License, or (at your option) any later version.
XCOMM
XCOMM This library is distributed in the hope that it will be useful,
XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
XCOMM Library General Public License for more details.
XCOMM
XCOMM You should have received a copy of the GNU Library General Public
XCOMM License along with this library; if not, write to the Free
XCOMM Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XCOMM

XCOMM Include the XmHTML configuration file
#include "XmHTML.cf"

XCOMM If you don't want to build the examples, remove it from the SUBDIRS
XCOMM line below. Likewise for the tools directory. If you want to build
XCOMM the XmHTML tutorial examples, add the book directory.

SUBDIRS = lib http examples tools book

XCOMM 
XCOMM No need to change anything below this line
XCOMM

#define IHaveSubdirs YES

#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

AllTarget(includes)

MakeSubdirs($(SUBDIRS))

XCOMM make depend depends on make includes
depend:: includes
DependSubdirs($(SUBDIRS))

XCOMM
XCOMM Seperate rules for building a dir from the toplevel directory
XCOMM

XCOMM the XmHTML library. Depends on includes.
lib:: includes
NamedMakeSubdirs(lib, src)

XCOMM the http client-side library. Depends on includes
http:: includes
NamedMakeSubdirs(http, http)

XCOMM the examples directory. Depends on includes, libXmHTML and libhttp.
examples:: includes lib http
NamedMakeSubdirs(examples, examples)

XCOMM everything in tools. Depends on includes and libhttp.
tools:: includes http
NamedMakeSubdirs(tools, tools)

XCOMM everything in book. Depends on includes and libXmHTML
book:: includes lib
NamedMakeSubdirs(book, book)

World:
	$(MAKE) Makefiles
	$(MAKE) includes
	$(MAKE) depend
	$(MAKE) lib
	$(MAKE) http
	$(MAKE) examples
	$(MAKE) tools
	$(MAKE) book

XCOMM 
XCOMM Rules for doing make includes. These propagate down the entire
XCOMM source tree.
XCOMM

stamp-includes:
	MakeDir(include/XmHTML)
	touch $@

includes:: stamp-includes

XCOMM
XCOMM Special rules for creating a distribution with the barebone makefiles
XCOMM
#if (ProjectX > 5)
distclean:: 
	@( for dir in $(SUBDIRS) ; do \ @@\
		(set -x ; cd $$dir ; $(MAKE) distclean $(pass_flags) ) ; \	@@\
	done)															@@\
	$(RM) stamp-includes											@@\
	$(RM) -r ./include												@@\
	$(RM) core *.out make.world *.bak *.last *.auto stamp-includes	@@\
	$(CP) Makefile.org Makefile
#else
distclean:: 
	@( for dir in $(SUBDIRS) ; do \
		(set -x ; cd $$dir ; $(MAKE) distclean $(pass_flags) ) ; \
	done)
	$(RM) stamp-includes
	$(RM) -r ./include
	$(RM) core *.out make.world *.bak *.last *.auto stamp-includes
	$(CP) Makefile.org Makefile
#endif

dist:: distclean
	$(LN) . XmHTML-$(ARCHIVE)
	tools/scansrc.sh `pwd`-$(ARCHIVE)/src > docs/sources.desc
	tar cvf - XmHTML-$(ARCHIVE)Concat(/,*) | gzip -c > XmHTML-$(ARCHIVE).tar.gz

#endif