home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vile-src.zip / vile-8.1 / makefile.in < prev    next >
Makefile  |  1998-10-01  |  17KB  |  604 lines

  1. # makefile.in is the makefile template for vile on unix systems.
  2. # makefile is generated from makefile.in by running configure.
  3. #
  4. # If you edit makefile, your changes will be lost when you run configure
  5. # again.  See the file INSTALL from instructions on how to configure, make,
  6. # and install vile/xvile.
  7. #
  8. # The command/name/key/function bindings are defined in the file "cmdtbl".
  9. # The mktbls program parses this to produce nebind.h, nename.h, neproto.h and
  10. # nefunc.h, which are used by the rest of the build.
  11. #
  12. # Buffer/window modes are defined in the file "modetbl".
  13. # The mktbls program parses this to produce nemode.h, which is included in
  14. # 'estruct.h'.
  15. #
  16. # The version number is found near the top of edef.h, and is displayed with
  17. # the ":version" command, or by invoking vile with "-V".
  18. #
  19. # Paul Fox
  20. #
  21. # gnu autoconf support by kevin buettner, 5/94
  22. # original makefile for uemacs: Adam Fritz July 30,1987  (do you recognize it?)
  23. #
  24. # $Header: /usr/build/vile/vile/RCS/makefile.in,v 1.117 1998/10/02 01:04:17 tom Exp $
  25. #
  26.  
  27. #### Start of system configuration section. ####
  28.  
  29. srcdir = @srcdir@
  30. srcdir_sl = @srcdir@/
  31. VPATH  = @srcdir@
  32.  
  33. CC        = @CC@
  34. CPP        = @CPP@
  35. LINK        = @LINK_PREFIX@ $(CC) $(CFLAGS)
  36. INSTALL        = @INSTALL@
  37. INSTALL_PROGRAM    = @INSTALL_PROGRAM@
  38. INSTALL_DATA    = @INSTALL_DATA@
  39.  
  40. EXTRA_CFLAGS    = @EXTRA_CFLAGS@
  41. CFLAGS        = @CFLAGS@ $(EXTRA_CFLAGS)
  42. LIBS        = @LIBS@
  43. LINT        = @LINT@
  44.  
  45. x        = @PROG_EXT@
  46.  
  47. X_CFLAGS    = @X_CFLAGS@
  48. X_LIBS        = @X_LIBS@
  49.  
  50. SCREEN        = @SCREEN@
  51. TARGET        = @TARGET@$x
  52.  
  53. PERL        = @PERL@
  54. PERLLIB        = @perl_lib_path@
  55.  
  56. prefix        = @prefix@
  57. exec_prefix    = @exec_prefix@
  58.  
  59. manext        = 1
  60. bindir        = @bindir@
  61. datadir        = @datadir@/vile
  62. perldir        = $(datadir)/perl
  63. mandir        = @mandir@/man$(manext)
  64.  
  65. #### End of system configuration section. ####
  66.  
  67. SHELL        = /bin/sh
  68. RM              = rm -f
  69.  
  70. QUOTDEFS    = -DVILE_STARTUP_PATH=\"@VILE_STARTUP_PATH@\"
  71. CPPFLAGS    = -I. -I$(srcdir) $(X_CFLAGS) \
  72.         -DHAVE_CONFIG_H @CPPFLAGS@
  73.  
  74. LDFLAGS        = @IMAKE_LOADFLAGS@
  75.  
  76. INSTALL_DIRS    = $(bindir) $(datadir) $(mandir) @EXTRA_INSTALL_DIRS@
  77.  
  78. .SUFFIXES: .c .i .o
  79.  
  80. .c.i:
  81. @RULE_CC@
  82.     @ECHO_CC@$(CPP) -C $(CPPFLAGS) $(QUOTDEFS) $< >$@
  83. .c.o:
  84. @RULE_CC@
  85.     @ECHO_CC@$(CC) -c $(CPPFLAGS) $(QUOTDEFS) $(CFLAGS) -DHELP_LOC=\"$(datadir)/\" $<
  86.  
  87. # All of the makefiles which should be preserved and distributed
  88. UNIXMAKIN = makefile.in                # for use with configure
  89. VMSMAK =   descrip.mms vmsbuild.com        # on VMS
  90. TURBOMAK = makefile.tbc                # on DOS or OS/2, TURBO C or Borland C
  91. WATMAK =   makefile.wat                # on DOS, using Watcom C/386
  92. MSCMAK =    # still waiting for this one    # on DOS, using Microsoft C
  93. DJGPPMAK = makefile.djg                # on DOS, DJGCC v1.09
  94. NTMAK = makefile.wnt                # on Windows/NT
  95. BCCNTMAK = makefile.blc                # Borland C on Windows/NT
  96. OS2MAK = makefile.icc                # OS/2, (IBM C Set ++ 2.x)
  97. EMXMAK = makefile.emx config.emx        # OS/2, (EMX with gcc)
  98.  
  99. MAKFILES = \
  100.     $(UNIXMAKIN) \
  101.     $(VMSMAK) \
  102.     $(TURBOMAK) \
  103.     $(WATMAK) \
  104.     $(DJGPPMAK) \
  105.     $(MSCMAK) \
  106.     $(BORMAK) \
  107.     $(NTMAK) \
  108.     $(BCCNTMAK) \
  109.     $(OS2MAK) \
  110.     $(EMXMAK)
  111.  
  112. ALLTOOLS = $(MAKFILES) mktbls.c cmdtbl modetbl \
  113.     configure config_h.in \
  114.     install.sh mkdirs.sh \
  115.     configure.in aclocal.m4
  116.  
  117. # these are normal editable headers
  118. HDRS = \
  119.     api.h \
  120.     btree.h \
  121.     chgdfunc.h \
  122.     dirstuff.h \
  123.     edef.h \
  124.     estruct.h \
  125.     os2keys.h \
  126.     proto.h \
  127.     pscreen.h \
  128.     tcap.h \
  129.     trace.h
  130.  
  131. SCREENS = \
  132.     ansi.c \
  133.     borland.c \
  134.     ibmpc.c \
  135.     ntconio.c \
  136.     ntwinio.c \
  137.     os2vio.c \
  138.     tcap.c \
  139.     vmsvt.c \
  140.     x11.c
  141.  
  142. # other source code, some used in other makefiles, some useful tools,
  143. #  some possibly obsolete
  144. PERL_SRC = \
  145.     $(srcdir)/perl/glob2re.pl \
  146.     $(srcdir)/perl/hgrep.pl \
  147.     $(srcdir)/perl/hilite.pl \
  148.     $(srcdir)/perl/manfilt.pl \
  149.     $(srcdir)/perl/search.pl \
  150.     $(srcdir)/perl/shell.pl \
  151.     $(srcdir)/perl/syntax.pl \
  152.     $(srcdir)/perl/tailf.pl \
  153.     $(srcdir)/perl/visit.pl
  154.  
  155. MACRO_SRC = \
  156.     $(srcdir)/macros/manpage.rc \
  157.     $(srcdir)/macros/pictmode.rc \
  158.     $(srcdir)/macros/digraphs.rc
  159.  
  160. OTHERSRC = \
  161.     c-filt.c \
  162.     c-filt.flx \
  163.     djhandl.c \
  164.     gppconio.c \
  165.     manfilt.c \
  166.     os2pipe.c \
  167.     pas-filt.c \
  168.     vms2unix.c \
  169.     vmspipe.c
  170.  
  171. # documentation, such as it is
  172. DOCS =    \
  173.     doc/config.doc \
  174.     doc/hilite.doc \
  175.     doc/macros.doc \
  176.     doc/menus.doc \
  177.     doc/modes.doc \
  178.     doc/oleauto.doc \
  179.     doc/perl.doc \
  180.     doc/visvile.doc \
  181.     doc/w32modes.doc \
  182.     vile.1 \
  183.     vile.hlp
  184.  
  185. # miscellaneous text files
  186. TEXTFILES = README README.PC \
  187.     INSTALL CHANGES \
  188.     CHANGES.R7 CHANGES.R6 CHANGES.R5 CHANGES.R4 CHANGES.R3 \
  189.     buglist revlist patchlev.h COPYING
  190.  
  191. VILESRC = main.c api.c basic.c bind.c btree.c buffer.c crypt.c csrch.c \
  192.     display.c dumbterm.c eval.c exec.c externs.c fences.c file.c \
  193.     filec.c fileio.c finderr.c glob.c globals.c \
  194.     history.c input.c insert.c isearch.c itbuff.c lckfiles.c line.c map.c \
  195.     modes.c msgs.c npopen.c oneliner.c opers.c path.c random.c \
  196.     regexp.c region.c search.c select.c spawn.c tags.c \
  197.     tbuff.c termio.c undo.c version.c \
  198.     watch.c window.c word.c wordmov.c
  199.  
  200. ALLSRC = $(VILESRC) $(SCREENS) $(OTHERSRC) $(HDRS)
  201.  
  202. # this is for work-in-progress files being shared among developers
  203. #  which don't need to go into general releases yet.
  204. DEVELOPER_ONLY = NOTES.X11 empty.rc mktbls.bat \
  205.     trace.c trace.h \
  206.     fakevms.c fakevms.h
  207.  
  208. # these are the files that go to everyone
  209. DISTFILES = $(ALLTOOLS) $(ALLSRC) $(DOCS) $(TEXTFILES)
  210.  
  211. # these are the files that go to coders
  212. DEV_DISTFILES = $(DISTFILES) $(DEVELOPER_ONLY)
  213.  
  214. SRC = $(SCREEN).c $(VILESRC)
  215.  
  216. MKTBLS = ./mktbls$x
  217.  
  218. # these headers are built by the mktbls program from the information in cmdtbl
  219. # and in modetbl
  220. BUILTHDRS = nebind.h neproto.h neexec.h nefunc.h nemode.h nename.h nevars.h nefkeys.h nefsms.h
  221.  
  222. # built from perl.xs
  223. BUILTSRCS = perl.c
  224.  
  225. # The following are optional (non-core):
  226. #    btree.o
  227. #    crypt.o
  228. #    npopen.o
  229. #    spawn.o
  230. OBJ = $(SCREEN).o \
  231.     main.o api.o basic.o bind.o buffer.o csrch.o \
  232.     display.o dumbterm.o eval.o exec.o externs.o fences.o file.o \
  233.     filec.o fileio.o finderr.o glob.o globals.o \
  234.     history.o input.o insert.o isearch.o itbuff.o lckfiles.o line.o map.o \
  235.     modes.o msgs.o oneliner.o opers.o path.o random.o \
  236.     regexp.o region.o search.o select.o tags.o \
  237.     tbuff.o termio.o undo.o version.o \
  238.     watch.o window.o word.o wordmov.o @EXTRAOBJS@
  239.  
  240. ALL =    $(TARGET) vile-manfilt$x vile-c-filt$x vile-pas-filt$x vile-crypt$x
  241. all:    $(ALL)
  242.  
  243. $(TARGET): $(BUILTHDRS) $(OBJ)
  244.     -mv $(TARGET) o$(TARGET)
  245.     @ECHO_LD@$(LINK) $(LDFLAGS) -o $@ $(OBJ) $(X_LIBS) $(LIBS)
  246.  
  247. vile.man: vile.1
  248.     nroff -man vile.1 | col -b >vile.man
  249.  
  250. vile-manfilt$x : manfilt.o
  251.     @ECHO_LD@$(LINK) $(LDFLAGS) -o $@ manfilt.o
  252.  
  253. vile-c-filt$x : c-filt.o
  254.     @ECHO_LD@$(LINK) $(LDFLAGS) -o $@ c-filt.o
  255.  
  256. vile-pas-filt$x : pas-filt.o
  257.     @ECHO_LD@$(LINK) $(LDFLAGS) -o $@ pas-filt.o
  258.  
  259. vile-crypt$x : $(srcdir)/crypt.c
  260.     @ECHO_LD@$(CC) -DSTANDALONE $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
  261.         -o $@ $(srcdir)/crypt.c
  262.  
  263. vile-perl-api.pod: perl.xs
  264.     perl -lne 'print if s/^\s{1,2}#\s{0,1}//' $(srcdir)/perl.xs > $@
  265.  
  266. vile-perl-api.doc: vile-perl-api.pod
  267.     pod2text vile-perl-api.pod > $@
  268.  
  269. vile-perl-api.html: vile-perl-api.pod
  270.     pod2html vile-perl-api.pod > $@
  271.  
  272. vile-perl-api.man: vile-perl-api.pod
  273.     pod2man vile-perl-api.pod > $@
  274.  
  275. nebind.h \
  276. nefkeys.h \
  277. neexec.h \
  278. nefunc.h \
  279. neproto.h \
  280. nename.h :    cmdtbl $(MKTBLS)
  281.     $(MKTBLS) $(srcdir)/cmdtbl
  282.  
  283. nefsms.h \
  284. nevars.h \
  285. nemode.h:    modetbl $(MKTBLS)
  286.     $(MKTBLS) $(srcdir)/modetbl
  287.  
  288. $(MKTBLS):  $(srcdir)/mktbls.c
  289.     @ECHO_LD@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
  290.         -o $(MKTBLS)  $(srcdir)/mktbls.c
  291.  
  292. check: $(TARGET)
  293.     @echo Sorry, no batch tests available.
  294.  
  295. INSTALL_PERL_DIRS = $(perldir)
  296. INSTALL_PERL_FILES = \
  297.     $(perldir)/glob2re.pl \
  298.     $(perldir)/hgrep.pl \
  299.     $(perldir)/hilite.pl \
  300.     $(perldir)/manfilt.pl \
  301.     $(perldir)/search.pl \
  302.     $(perldir)/shell.pl \
  303.     $(perldir)/syntax.pl \
  304.     $(perldir)/tailf.pl \
  305.     $(perldir)/visit.pl
  306.  
  307. INSTALL_FILES = \
  308.     $(bindir)/$(TARGET) \
  309.     $(bindir)/vile-manfilt$x \
  310.     $(bindir)/vile-c-filt$x \
  311.     $(bindir)/vile-pas-filt$x \
  312.     $(bindir)/vile-crypt$x \
  313.     $(mandir)/$(TARGET).$(manext) \
  314.     $(datadir)/vile.hlp @EXTRA_INSTALL_FILES@
  315.  
  316. install: $(INSTALL_DIRS) \
  317.     $(INSTALL_FILES)
  318.     @echo 'Completed installation.'
  319.  
  320. install-perl : $(INSTALL_PERL_DIRS) $(INSTALL_PERL_FILES)
  321.  
  322. installdirs: $(INSTALL_DIRS)
  323.  
  324. uninstall:
  325.     -$(RM) $(INSTALL_FILES)
  326.  
  327. # The makefile is technically dependent upon the config.status file, but
  328. # gmake gets overly ambitious and remakes the makefile too often.
  329. makefile: makefile.in
  330.     if test ! -f config.status; then $(SHELL) ./configure; fi
  331.     $(SHELL) ./config.status
  332.  
  333. # defining this target, though technically (i think) correct, causes
  334. #  the make to fail on machines which don't have autoconf, i.e. most of them.
  335. #configure: configure.in aclocal.m4
  336. #    autoconf
  337.  
  338. config.status: configure
  339.     $(SHELL) ./config.status --recheck
  340.  
  341. mostlyclean:
  342.     -$(RM) *.[oi] o$(TARGET) $(BUILTHDRS) $(BUILTSRCS) $(MKTBLS) \
  343.         core *~ *.BAK
  344.  
  345. clean: mostlyclean
  346.     -$(RM) $(ALL)
  347.  
  348. distclean: clean
  349.     -$(RM) makefile config.status config.cache config.log config.h
  350.  
  351. realclean: distclean
  352.     -$(RM) tags TAGS vile-perl-api.* pod2html-*
  353.  
  354. lint: $(BUILTHDRS)
  355.     $(LINT) $(CPPFLAGS) $(SRC) $(LIBS)
  356.     $(LINT) $(CPPFLAGS) mktbls.c
  357.     $(LINT) $(CPPFLAGS) c-filt.c
  358.     $(LINT) $(CPPFLAGS) pas-filt.c
  359.     $(LINT) $(CPPFLAGS) manfilt.c
  360.  
  361. tags:
  362.     ctags $(SRC) $(HDRS)
  363.  
  364. TAGS:
  365.     etags $(SRC) $(HDRS)
  366.  
  367. dotags:
  368.     dotags $(SRC) $(HDRS)
  369.  
  370. #     this builds vile-N.Ndev.tar.gz, including all development files
  371. devtarball:    $(DEV_DISTFILES) /tmp/vilevers release_warnings
  372.     echo vile-`cat /tmp/vilevers` > .fname
  373.     rm -rf `cat .fname`
  374.     mkdir `cat .fname`
  375.     SRCDIR=. ;\
  376.     test $(srcdir) = "\@srcdir\@" && SRCDIR=$(srcdir) ;\
  377.     for file in $(DEV_DISTFILES); do \
  378.       ln $$SRCDIR/$$file `cat .fname` \
  379.         || { echo copying $$file instead; cp -p $$file `cat .fname`; }; \
  380.     done
  381. #    tar -cf - `cat .fname` | gzip >`cat .fname`dev.tar.gz
  382.     gtar -czf `cat .fname`dev.tar.gz `cat .fname`
  383.     @echo Created `cat .fname`dev.tar.gz
  384.     rm -rf `cat .fname` .fname
  385.  
  386. #     this builds vile-N.N.tar.gz, for general release
  387. tarball:    $(DISTFILES) /tmp/vilevers release_warnings
  388.     echo vile-`cat /tmp/vilevers` > .fname
  389.     rm -rf `cat .fname`
  390.     mkdir `cat .fname`
  391.     SRCDIR=. ;\
  392.     test $(srcdir) = "\@srcdir\@" && SRCDIR=$(srcdir) ;\
  393.     for file in $(DISTFILES); do \
  394.       ln $$SRCDIR/$$file `cat .fname` \
  395.         || { echo copying $$file instead; cp -p $$file `cat .fname`; }; \
  396.     done
  397.     gtar -czf `cat .fname`.tar.gz `cat .fname`
  398.     @echo Created `cat .fname`.tar.gz
  399.     rm -rf `cat .fname` .fname
  400.  
  401. #     this builds vileN.Nshar, for general release
  402. bigsharball: $(DISTFILES) /tmp/vilevers release_warnings
  403.     vilevers=`cat /tmp/vilevers`; \
  404.     shar -spgf@foxharp.boston.ma.us -nvile$${vilevers} \
  405.         -o vile$${vilevers}shar README `ls $(DISTFILES) | \
  406.         sed '/^README$$/d'` ; \
  407.     mv vile$${vilevers}shar.01 vile$${vilevers}shar    ; \
  408.     echo Created vile$${vilevers}shar
  409.  
  410.  
  411. # shar args: add -a for archive headers, add -s pgf@site.net for "submitted-by"
  412. multisharball: $(DISTFILES) /tmp/vilevers
  413.     [ -d shardir ] || mkdir shardir
  414.     vilevers=`cat /tmp/vilevers`; \
  415.     shar -x -a -spgf@foxharp.boston.ma.us -nvile$${vilevers} -L60 \
  416.             -o shardir/vileshar `ls $(DISTFILES)`
  417.  
  418. multicsharball: $(DISTFILES) /tmp/vilevers
  419.     [ -d cshardir ] || mkdir cshardir
  420.     vilevers=`cat /tmp/vilevers`; \
  421.     shar -p -nvile$${vilevers} -L60 -o cshardir/vileshar \
  422.         -C `ls $(DISTFILES)`
  423.  
  424. zipfile: $(DISTFILES) /tmp/vilevers
  425.     vilevers=`cat /tmp/vilevers | sed 's/\.//'`; \
  426.     zip -k vile$${vilevers}s.zip $(DISTFILES) ;\
  427.     echo Created vile$${vilevers}s.zip
  428.  
  429. # DOS builds...
  430. DOSBINARIES = README README.PC vile.hlp vile.exe
  431.  
  432. binzip_djg: $(DOSBINARIES) go32.exe /tmp/vilevers
  433.     vilevers=`cat /tmp/vilevers | sed 's/\.//'`; \
  434.     zip -k vile$${vilevers}b.zip $(DOSBINARIES) go32.exe ;\
  435.     echo Created vile$${vilevers}b.zip
  436.  
  437. binzip_wat: $(DOSBINARIES) dos4gw.exe /tmp/vilevers
  438.     vilevers=`cat /tmp/vilevers | sed 's/\.//'`; \
  439.     zip -k vile$${vilevers}b.zip $(DOSBINARIES) dos4gw.exe ;\
  440.     echo Created vile$${vilevers}b.zip
  441.  
  442. patch:    /tmp/vilevers
  443.     @orevlistrev=`rlog -h revlist | egrep head: | cut -f2 -d'.'`    ;\
  444.     orevlistrev=1.`expr $$orevlistrev - 1`                ;\
  445.     ovilevers=`cat /tmp/vilevers | cut -f2 -d'.'`            ;\
  446.     ovilemajor=`cat /tmp/vilevers | cut -f1 -d'.'`            ;\
  447.     ovilevers=$$ovilemajor.`expr $$ovilevers - 1`            ;\
  448.     echo Previous version is $$ovilevers                ;\
  449.     vilevers=`cat /tmp/vilevers`                    ;\
  450.     co -p$$orevlistrev revlist |                     \
  451.     while read file filerev                        ;\
  452.     do                                 \
  453.       rcsdiff -c -u -r$$filerev $$file 2>/dev/null || true        ;\
  454.     done  >patch$$ovilevers-$$vilevers                 ;\
  455.     echo Created patch$$ovilevers-$$vilevers
  456.  
  457. dpatch:
  458.     co -p$(PATCH_AGAINST) revlist |                      \
  459.     while read file filerev                        ;\
  460.     do                                 \
  461.       rcsdiff -c -u -r$$filerev $$file 2>/dev/null || true        ;\
  462.     done  >patchREL-CUR                         ;\
  463.     echo Created patchREL-CUR
  464.  
  465. /tmp/vilevers: ALWAYS
  466.     @expr "`egrep 'version\[\].*' edef.h`" : \
  467.         '.* \([0-9][0-9]*\.[0-9].*\)".*' >/tmp/vilevers
  468.     @echo Current version is `cat /tmp/vilevers`
  469.  
  470. release_warnings:
  471.     @echo
  472.     @echo 'Do you need to rebuild the revlist????  top comment is:'
  473.     @rlog revlist | sed -n -e '/date/,/---------/p' | \
  474.         sed -n '/date\|------------/!p' | sed -e 's/^/    /' -e 1q
  475.     @echo 'or maybe date the CHANGES file?  it says:'
  476.     @sed -n -e '/Changes/s/^/    /p' -e '2q' CHANGES
  477.     @echo 'or maybe update the version info in edef.h?  it contains:'
  478.     @sed -n -e '/.*decl_init.*version.*,/s//    /p' edef.h
  479.     @echo 'how about the README?  it contains:'
  480.     @sed -n -e '/version/s/^/    /p' -e '3q' README
  481.     @echo 'or in vile.hlp?  it has:'
  482.     @sed -n -e '/.*Getting along with vile    */s//    /p' -e '5q' vile.hlp
  483.     @echo 'or in vmsbuild.com?  it has:'
  484.     @sed -n -e '/Identification=/s/^.*Vile \([^"]*\)["]*/    \1/p' vmsbuild.com
  485.     @echo 'did you reset patchlev.h?'
  486.     @sed -n -e 's/^/    /' -e '/PATCH/p' patchlev.h
  487.     @echo -n "Hit return to continue..."
  488.     @read a
  489.  
  490. rcsdiffrw:
  491.     @-for x in `$(MAKE) -f makefile.in rw`    ;\
  492.     do    \
  493.         echo         ;\
  494.         echo $$x    ;\
  495.         echo =========    ;\
  496.         rcsdiff -u $$x    ;\
  497.     done 2>&1        ;\
  498.     echo            ;\
  499.     echo all done
  500.  
  501. # dump a list of the important files
  502. list:
  503.     @ls $(DEV_DISTFILES)
  504.  
  505. devonlylist:
  506.     @ls $(DEVELOPER_ONLY)
  507.  
  508. # make a list of RCS revisions.  don't include the revlist itself
  509. nrevlist:
  510.     for f in `$(MAKE) -f makefile.in list  | egrep -v revlist`    ;\
  511.     do                                \
  512.         rev=`rlog -h $$f | egrep head: | cut -f2 -d' '`        ;\
  513.         echo "$$f    $$rev"                    ;\
  514.     done >/tmp/vile_revlist
  515.     mv /tmp/vile_revlist nrevlist
  516.  
  517. # dump a list of files that may have changed since last backup
  518. rw:
  519.     @ls -l $(DEV_DISTFILES) |\
  520.         egrep '^[^l].w' | \
  521.         sed 's;.* ;;'   # strip to last space
  522.  
  523. populate:
  524.     for file in $(DEV_DISTFILES); do \
  525.     test -f $$file || co $$file ;\
  526.     done
  527.  
  528. perl.c: $(srcdir)/perl.xs $(srcdir)/ptypemap
  529.     $(PERL) $(PERLLIB)/ExtUtils/xsubpp \
  530.         -typemap $(PERLLIB)/ExtUtils/typemap \
  531.         -typemap ptypemap \
  532.         $(srcdir)/perl.xs > $@
  533.  
  534. $(OBJ): estruct.h nemode.h edef.h neproto.h proto.h config.h
  535.  
  536. api.o:        api.h
  537. bind.o:        nefunc.h btree.h
  538. btree.o:    btree.h
  539. eval.o:        nevars.h
  540. exec.o:        neexec.h nefunc.h
  541. externs.o:    nebind.h nename.h neproto.h nefunc.h
  542. filec.o:    dirstuff.h
  543. glob.o:        dirstuff.h
  544. globals.o:    nefunc.h
  545. main.o:        chgdfunc.h nevars.h
  546. modes.o:    chgdfunc.h nefsms.h
  547. opers.o:    nefunc.h
  548. path.o:        dirstuff.h
  549. perl.o:        api.h
  550. random.o:    nefunc.h
  551. select.o:    nefunc.h
  552. spawn.o:    nefunc.h
  553. tags.o:        btree.h
  554. tcap.o:        tcap.h
  555. termio.o:    nefunc.h
  556. version.o:    patchlev.h
  557. word.o:        nefunc.h
  558. x11.o:        nefunc.h
  559.  
  560. # dependency-rules for install/installdirs
  561. $(bindir)/$(TARGET):       $(TARGET)
  562.     $(INSTALL_PROGRAM) $(TARGET) $@
  563. $(bindir)/vile-manfilt$x : vile-manfilt$x
  564.     $(INSTALL_PROGRAM) vile-manfilt$x $@
  565. $(bindir)/vile-c-filt$x :  vile-c-filt$x
  566.     $(INSTALL_PROGRAM) vile-c-filt$x $@
  567. $(bindir)/vile-pas-filt$x : vile-pas-filt$x
  568.     $(INSTALL_PROGRAM) vile-pas-filt$x $@
  569. $(bindir)/vile-crypt$x :   vile-crypt$x
  570.     $(INSTALL_PROGRAM) vile-crypt$x $@
  571.  
  572. $(mandir)/vile.$(manext):  $(srcdir)/vile.1
  573.     $(INSTALL_DATA)    $(srcdir)/vile.1 $@
  574. $(mandir)/xvile.$(manext): $(srcdir)/vile.1
  575.     $(INSTALL_DATA)    $(srcdir)/vile.1 $@
  576.  
  577. $(datadir)/vile.hlp:       $(srcdir)/vile.hlp
  578.     $(INSTALL_DATA)    $(srcdir)/vile.hlp $@
  579.  
  580. $(perldir)/glob2re.pl:     $(srcdir)/perl/glob2re.pl
  581.     $(INSTALL_DATA)    $(srcdir)/perl/glob2re.pl $@
  582. $(perldir)/hgrep.pl:       $(srcdir)/perl/hgrep.pl
  583.     $(INSTALL_DATA)    $(srcdir)/perl/hgrep.pl $@
  584. $(perldir)/hilite.pl:      $(srcdir)/perl/hilite.pl
  585.     $(INSTALL_DATA)    $(srcdir)/perl/hilite.pl $@
  586. $(perldir)/manfilt.pl:     $(srcdir)/perl/manfilt.pl
  587.     $(INSTALL_DATA)    $(srcdir)/perl/manfilt.pl $@
  588. $(perldir)/search.pl:      $(srcdir)/perl/search.pl
  589.     $(INSTALL_DATA)    $(srcdir)/perl/search.pl $@
  590. $(perldir)/shell.pl:       $(srcdir)/perl/shell.pl
  591.     $(INSTALL_DATA)    $(srcdir)/perl/shell.pl $@
  592. $(perldir)/syntax.pl:      $(srcdir)/perl/syntax.pl
  593.     $(INSTALL_DATA)    $(srcdir)/perl/syntax.pl $@
  594. $(perldir)/tailf.pl:       $(srcdir)/perl/tailf.pl
  595.     $(INSTALL_DATA)    $(srcdir)/perl/tailf.pl $@
  596. $(perldir)/visit.pl:       $(srcdir)/perl/visit.pl
  597.     $(INSTALL_DATA)    $(srcdir)/perl/visit.pl $@
  598.  
  599. $(INSTALL_DIRS):
  600.     $(SHELL) ${srcdir}/mkdirs.sh $@
  601.  
  602. ALWAYS:
  603.  
  604.