File: Makefile

package info (click to toggle)
tkpaint 1.5.4-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 640 kB
  • ctags: 186
  • sloc: tcl: 5,564; sh: 327; makefile: 114; ansic: 2
file content (46 lines) | stat: -rw-r--r-- 1,377 bytes parent folder | download | duplicates (2)
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
# Generated automatically from Makefile.in by configure.
#
#  Makefile for tkpaint on Unix system
#
WISH = /usr/bin/wish
TCLSH = /usr/bin/tclsh
prefix = /usr
psviewer = /usr/X11R6/bin/gv
sysconfdir = ${prefix}/lib/tkpaint
exec_prefix = ${prefix}
bindir = $(exec_prefix)/bin 
libdir = $(prefix)/lib
INSTALL = /usr/bin/install -c
LIBDIR = $(libdir)/tkpaint
all: tclIndex tkpaint

install: all
	./mkinstalldirs   $(bindir)
	
	$(INSTALL) -m 755 tkpaint $(bindir)
	./mkinstalldirs $(LIBDIR) 
	$(INSTALL) -m 644 fontsel.tcl $(LIBDIR)
	$(INSTALL) -m 644 arrowshape.tcl $(LIBDIR)
	$(INSTALL) -m 644 tclIndex $(LIBDIR)
	$(INSTALL) -m 644 help.tcl $(LIBDIR)
	./mkinstalldirs $(sysconfdir)
	$(INSTALL) -m 644 tkpaintrc $(sysconfdir)
	(cd gifs; $(MAKE) install)
uninstall:
	rm -f $(bindir)/tkpaint
	rm -rf $(LIBDIR)
	rm -f $(sysconfdir)/tkpaintrc
clean:
	rm -f tkpaint tclIndex
distclean: clean
	rm -f config.* Makefile gifs/Makefile
tclIndex: arrowshape.tcl fontsel.tcl help.tcl
	echo auto_mkindex . arrowshape.tcl help.tcl |tclsh
	echo 'set auto_index(dkf_chooseFont) [list source [file join $$dir fontsel.tcl]]' >> tclIndex
tkpaint: tkpaint.tcl
	echo "#! $(WISH)" > tkpaint
	echo set LIBDIR "\"$(LIBDIR)\"" >> tkpaint
	echo set CONFIGDIR "\"$(sysconfdir)\"" >>tkpaint
	test -n $(psviewer) && echo set PS_VIEWER "\"$(psviewer)\"" >>tkpaint
	cat tkpaint.tcl >>tkpaint
	chmod 0755 tkpaint