home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / contrib / gwmsh / Makefile < prev    next >
Makefile  |  1995-07-03  |  3KB  |  126 lines

  1. # $Id: gwm.shar,v 1.107 1995/07/03 09:24:22 colas Exp $
  2. #
  3. # $Log: gwm.shar,v $
  4.  * Revision 1.107  1995/07/03  09:24:22  colas
  5.  * *** Version 1.8a ***
  6.  *
  7.  * logging by sending an udppacket is now disablable at run
  8.  * time by setting the environment variables NO_GWM_LOG or NO_KOALA_SPY
  9.  *
  10.  * Revision 1.100  1995/05/29  15:56:57  colas
  11.  * simple-win.gwm: new parameters:
  12.  *     label like simple-icon
  13.  *     legend to place the label on sides of window
  14.  *     lpad and rpad: number of () to pad the label with stretchable space
  15.  * bar-max-wdths set by default to 1000
  16.  *
  17.  * John Carr <jfc@MIT.EDU>: patches to supress warnings on AIX/RS_6000/xlc
  18.  * rxterm install fixed once more
  19.  *
  20.  * Revision 1.97  1995/05/16  16:16:36  colas
  21.  * contrib/scripts/find-bar-nils
  22.  *
  23. # Revision 1.5  1995/05/15  22:29:34  colas
  24. # bar can have abitrary shaped backgrounds (shaped tiles)
  25. #
  26.  * Revision 1.95  1995/05/11  17:06:56  colas
  27.  * better spy
  28.  *
  29.  * Revision 1.93  1995/04/26  16:34:51  colas
  30.  * Makefile added in distrib
  31.  *
  32.  * simple-icon.gwm:
  33.  *
  34.  *     - customize item "legend" can now be instead of () or t the strings:
  35.  *       "top" "base" "right" "left" for the positions where you want the string
  36.  *       to appear
  37.  *       e.g: (customize simple-icon any XTerm "left")
  38.  *
  39.  *     - new customization item "label" to provide either a fixed string or a
  40.  *       lambda which will be used to filter the label
  41.  *       must return a non-empty string otherwise the unfiltered label is used
  42.  *       e.g: to supress the Netscape: in netscape icon titles
  43.  *       (customize simple-icon any Netscape
  44.  *           label (lambdaq (s) (match "Netscape: \\(.*\\)$" s 1))
  45.  *       )
  46.  *
  47.  * iconify a window doesnt not loose the window anymore in case of error in wool
  48.  * code
  49.  *
  50.  * Revision 1.92  1995/04/25  14:31:09  colas
  51.  * *** Version 1.7p_beta_2 ***
  52.  *
  53. # Revision 1.3  1994/09/30  18:55:08  uwe
  54. # Distribution targets uses parent directory to keep
  55. # emacs VC happy when making snapshots.
  56. #
  57. # Revision 1.2  1994/09/30  17:40:28  uwe
  58. # New targets for creating distributions.
  59. #
  60. # Revision 1.1  1994/09/21  20:48:22  uwe
  61. # Initial revision
  62. #
  63.  
  64. PROG = gwmsh
  65.  
  66. all: $(PROG)
  67.  
  68. SRCS    = gwmsh.c version.c
  69. OBJS    = gwmsh.o version.o
  70.  
  71. NONSRCS = Makefile rcshead ChangeLog PATCH-GWM README
  72.  
  73. THINGS_TO_RELEASE = $(SRCS) $(NONSRCS)
  74.  
  75. LN    = ln
  76. TAR    = gtar -v
  77. COMPRESS= gzip -9
  78. SHAR    = shar -o
  79.  
  80. CC    = gcc
  81. CDEBUG    = -ggdb3 -Wall -Wshadow
  82. #CC    = cc
  83. #CDEBUG    = -g
  84.  
  85. CINC    = -I/usr/openwin/include -I/usr/gnu/include
  86. CDEFS    = -DUSE_READLINE # -DNO_LIBERTY
  87. CFLAGS    = $(CDEBUG) $(CINC) $(CDEFS)
  88.  
  89. READLINE= -lreadline -ltermcap
  90. LIBS    = $(READLINE) -liberty -lX11 -lm
  91.  
  92. LDFLAGS    = -L/usr/gnu/lib -L/usr/openwin/lib
  93.  
  94. $(PROG): $(OBJS)
  95.     $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LIBS)
  96.  
  97. clean:
  98.     -rm -f core $(PROG) $(OBJS)
  99.  
  100. new: clean $(PROG)
  101.  
  102. distdir: $(THINGS_TO_RELEASE)
  103.     @RELEASE=$(PROG)-`./rcshead version.c`;\
  104.     echo Creating "$$RELEASE" in parent directory;\
  105.     rm -rf ../"$$RELEASE";\
  106.     mkdir ../"$$RELEASE";\
  107.     $(LN) $(THINGS_TO_RELEASE) ../"$$RELEASE"
  108.  
  109. tardist: distdir
  110.     @RELEASE=$(PROG)-`./rcshead version.c`;\
  111.     echo Making tar archive;\
  112.     cd ..;\
  113.     $(TAR) -c -v -f "$$RELEASE".tar $$RELEASE
  114.  
  115. tgzdist: tardist
  116.     @RELEASE=$(PROG)-`./rcshead version.c`;\
  117.     echo Compressing tar archive;\
  118.     cd ..;\
  119.     $(COMPRESS) "$$RELEASE".tar
  120.  
  121. shardist: distdir
  122.     @RELEASE=$(PROG)-`./rcshead version.c`;\
  123.     echo Making shar archive;\
  124.     cd ..;\
  125.     $(SHAR) "$$RELEASE".part "$$RELEASE"
  126.