File: Makefile

package info (click to toggle)
dlint 1.3.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 144 kB
  • ctags: 10
  • sloc: sh: 361; perl: 83; makefile: 68
file content (52 lines) | stat: -rw-r--r-- 1,271 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
#
# Dlint Makefile
#

VERSION=1.3.2

# Basic area to install things in:
DEST=$(DESTDIR)/usr

BIN=$(DEST)/bin
LIB=$(DEST)/lib/dlint
MANEXT=1
MAN=$(DEST)/man/man$(MANEXT)

# How to run BSD-style install prog:
INSTALL=install			# Linux, BSD, SunOS 4.x
#INSTALL=ginstall		# Gnu Install is good, it might be named this
#INSTALL=/usr/ucb/install	# SysV, Solaris 2.x

all:
	@echo 'nothing to make; see INSTALL for instructions.'

install:
	$(INSTALL) -c -m 755 -o bin -g bin dlint $(BIN)
	$(INSTALL) -c -m 755 -o bin -g bin digparse $(LIB)
	$(INSTALL) -c -m 644 -o bin -g bin dlint.1 $(MAN)/dlint.$(MANEXT)

clean:
	-rm -f *.shar core

#
# Developer's section ---------------------------------
#

PUB=/home/wwwtest/html/pub
dist:
	cd ..; tar cvf /tmp/dlint.tar \
		dlint$(VERSION)/README \
		dlint$(VERSION)/CHANGES \
		dlint$(VERSION)/COPYRIGHT \
		dlint$(VERSION)/COPYING \
		dlint$(VERSION)/INSTALL \
		dlint$(VERSION)/BUGS \
		dlint$(VERSION)/Makefile \
		dlint$(VERSION)/dlint \
		dlint$(VERSION)/digparse \
		dlint$(VERSION)/dlint.1
	gzip -f /tmp/dlint.tar
	$(INSTALL) -m 644 -o pab /tmp/dlint.tar.gz $(PUB)/dlint$(VERSION).tar.gz
	$(INSTALL) -m 644 -o pab README $(PUB)/dlint$(VERSION)-readme.txt
	$(INSTALL) -m 644 -o pab CHANGES $(PUB)/dlint$(VERSION)-changes.txt
#---