home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tk42r2s.zip / tk4.2 / os2 / rc / makefile < prev    next >
Makefile  |  1996-07-13  |  683b  |  40 lines

  1. SHELL = f:/bin/sh.exe
  2. ROOT = ../../..
  3. WINRC = $(ROOT)/win/rc
  4. CP = cp
  5. INCLUDEDIR = $(ROOT)/generic
  6. INCLUDE = -I$(INCLUDEDIR)
  7. rcinclude = -i $(INCLUDEDIR)
  8. RCWINFILES = $(wildcard $(WINRC)/*.cur) $(wildcard $(WINRC)/*.ico)
  9. RCFILES = $(notdir $(RCWINFILES))
  10.  
  11. all: tk.res cursors.h
  12.  
  13. tk.res: tk.rc $(RCFILES)
  14.     rc -r -n -x2 $(rcinclude) $<
  15.  
  16. tk.rc: tkwin.rc
  17.     smartrc $(INCLUDE) $< && $(CP) tkwin.rcx $@
  18.  
  19. cursors.h tkwin.rc: $(WINRC)/tk.rc fixrc.pl
  20.     perl fixrc.pl $< > $@
  21.  
  22. %.cuw: $(WINRC)/%.cur
  23.     $(CP) $< $@
  24.     chmod a+w $@
  25.  
  26. %.icw: $(WINRC)/%.ico
  27.     $(CP) $< $@
  28.     chmod a+w $@
  29.  
  30.  
  31.  
  32. # "-" Needed?!
  33.  
  34. %.cur: %.cuw
  35.     -smartcvt $< $@
  36.  
  37. %.ico: %.icw
  38.     -smartcvt $< $@
  39.  
  40.