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
|
PROGRAMS = lndir \
mkdirhier \
runstdtest \
mkdependC \
fastmake \
zap-if-same \
ltx \
perltags
all:: $(PROGRAMS)
/* stuff to have before we get going */
MsubNeededHere($(PROGRAMS))
/* === BUILD STUFF (installation, etc., below) ========== */
/* std X11 stuff */
MsubProgramScriptTarget(BourneShell,mkdirhier,mkdirhier.sh,,)
BuildPgmFromOneCFile(lndir)
#if 0
MsubProgramScriptTarget(BourneShell,lndir,lndir.sh,,)
InstallScriptTarget(lndir, $(INSTSCRIPTDIR))
#endif
MsubMakefileDependentProgramScriptTarget(PerlCmd,runstdtest,runstdtest.prl,,)
MsubMakefileDependentProgramScriptTarget(PerlCmd,ltx,ltx.prl,,)
MsubProgramScriptTarget(PerlCmd,fastmake,fastmake.prl,,)
MsubProgramScriptTarget(PerlCmd,zap-if-same,zap-if-same.prl,,)
MsubProgramScriptTarget(PerlCmd,perltags,perltags.prl,,)
/*
mkdependC has to go in "bin" directory, because there may be
machine-dependent ideas of what CC to use, etc.
ltx, runstdtest: ditto, but only because of TMPDIR
*/
MsubMakefileDependentProgramScriptTarget(PerlCmd,mkdependC,mkdependC.prl,/*noflags*/,/*Makefile*/)
#ifdef UseCCMakeDepend
install::
@echo "install makedepend (in ${CURRENT_DIR}) by hand..."
#endif
/*
lobotomized... install by hand...
#ifdef UseCCMakeDepend
InstallProgramTarget(makedepend,$(BINDIR))
#endif
*/
/* === INSTALLATION ======== */
/* the rest of these vary from std/useful to hackish dans le extreme */
MakeDirectories(install, $(INSTBINDIR) $(INSTSCRIPTDIR))
InstallScriptTarget(fastmake, $(INSTSCRIPTDIR))
InstallBinaryTarget(lndir, $(INSTBINDIR))
InstallScriptTarget(ltx, $(INSTBINDIR))
InstallScriptTarget(mkdependC, $(INSTBINDIR))
InstallScriptTarget(mkdirhier, $(INSTSCRIPTDIR))
InstallScriptTarget(perltags, $(INSTSCRIPTDIR))
InstallScriptTarget(runstdtest, $(INSTBINDIR))
InstallScriptTarget(zap-if-same, $(INSTSCRIPTDIR))
InstallManPageTarget(lndir,$(INSTCOMMANDIR),$(COMMANSUFFIX))
InstallManPageTarget(mkdirhier,$(INSTCOMMANDIR),$(COMMANSUFFIX))
/* === OTHER STUFF ========= */
ExtraStuffToClean($(PROGRAMS))
ClearTagsFile()
PerlTagsTarget( *.prl ) /* nothing for the Bourne shell scripts */
|