PROGRAMS = lndir \ mkdirhier \ runstdtest \ mkdependC \ fastmake \ lmake \ zap-if-same \ moan-if-old \ 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,/*no flags*/,/*no dep*/) BuildPgmFromOneCFile(lndir) #if 0 MsubProgramScriptTarget(BourneShell,lndir,lndir.sh,/*no flags*/,/*no dep*/) InstallScriptTarget(lndir, $(INSTSCRIPTDIR)) #endif MsubMakefileDependentProgramScriptTarget(PerlCmd,runstdtest,runstdtest.prl,/*no flags*/,/*Makefile*/) MsubMakefileDependentProgramScriptTarget(PerlCmd,ltx,ltx.prl,/*no flags*/,/*Makefile*/) MsubProgramScriptTarget(PerlCmd,fastmake,fastmake.prl,/*no flags*/,/**/) MsubProgramScriptTarget(PerlCmd,zap-if-same,zap-if-same.prl,/*no flags*/,/**/) MsubProgramScriptTarget(PerlCmd,moan-if-old,moan-if-old.prl,/*no flags*/,/**/) MsubProgramScriptTarget(PerlCmd,perltags,perltags.prl,/*no flags*/,/**/) MsubProgramScriptTarget(BourneShell,lmake,lmake.sh,/*no flags*/,/*no dep*/) /* 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)) InstallScriptTarget(lmake, $(INSTSCRIPTDIR)) InstallBinaryTarget(lndir, $(INSTBINDIR)) InstallScriptTarget(ltx, $(INSTBINDIR)) InstallScriptTarget(mkdependC, $(INSTBINDIR)) InstallScriptTarget(mkdirhier, $(INSTSCRIPTDIR)) InstallScriptTarget(perltags, $(INSTSCRIPTDIR)) InstallScriptTarget(runstdtest, $(INSTBINDIR)) InstallScriptTarget(zap-if-same, $(INSTSCRIPTDIR)) InstallScriptTarget(moan-if-old, $(INSTSCRIPTDIR)) InstallManPageTarget(lndir,$(INSTCOMMANDIR),$(COMMANSUFFIX)) InstallManPageTarget(mkdirhier,$(INSTCOMMANDIR),$(COMMANSUFFIX)) /* === OTHER STUFF ========= */ ExtraStuffToClean($(PROGRAMS)) ClearTagsFile() PerlTagsTarget( *.prl ) /* nothing for the Bourne shell scripts */