File: makefile

package info (click to toggle)
clig 1.1.3-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 328 kB
  • ctags: 72
  • sloc: tcl: 1,459; ansic: 253; makefile: 109; sh: 60; csh: 52
file content (58 lines) | stat: -rw-r--r-- 1,851 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
56
57
58
########################################################################
#
# (C) 1995, 1996, 1997 kir@iitb.fhg.de
#
########################################################################
include .version

prefix =~/tools/clig-$(VERSION)
exec_prefix =$(prefix)

# Directory in which to install the program clig
BINDIR =$(exec_prefix)/bin

# Directory in which to install scripts sourced in by clig
TCLSRCDIR =$(prefix)/tcl

# Directory in which to install C-template files
CTMPLDIR =$(prefix)/c

# Directory in which to install manual entries
MANDIR =$(prefix)
MAN1DIR =$(MANDIR)/man1

# Directory were to put release notes, changeLogs, News etc.
DOCDIR =$(prefix)/doc

## Directory where to install soft links to executables and manual
## pages which relief users from adding yet another directory to their
## PATH and MANPATH environments. The directory given must contain
## subdirectories called bin, man/man1, man/man3 and man/mann in order
## for the install script to generate the soft link.
## This is actually only useful, if prefix is not set to s.th. like
## /usr/local, but rather to a path not yet existing in the system.
## If LROOT points to a nonexisting directory, no soft links are created.
LROOT =~/tools

######################################################################## 
#
# You shouldn't normally need to edit anything below
#
########################################################################

install:
	@export VERSION \
                BINDIR TCLSRCDIR CTMPLDIR MAN1DIR DOCDIR LROOT; \
	VERSION="$(VERSION)" \
	VERDATE="$(VERDATE)" \
	BINDIR="$(BINDIR)"; \
	TCLSRCDIR="$(TCLSRCDIR)"; \
	CTMPLDIR="$(CTMPLDIR)"; \
	MAN1DIR="$(MAN1DIR)"; \
	DOCDIR="$(DOCDIR)"; \
	LROOT="$(LROOT)"; \
	./install.csh

rpm:
	ship -F -e clig.spec -d ~/rpm/SOURCES/
	cd ~/rpm; rpm -tb --buildarch noarch SOURCES/clig-${VERSION}.tar.gz