File: Makefile

package info (click to toggle)
dlint 1.4.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 236 kB
  • sloc: sh: 1,173; makefile: 94; perl: 89
file content (49 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download | duplicates (3)
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
#
# Dlint Makefile
#

VERSION=1.4.0

# Basic area to install things in:
#DEST=$(DESTROOT)/usr/local
# Path is provided in $(DESTDIR) from debian/rules
DEST=$(DESTDIR)/usr

BIN=$(DEST)/bin
SHARE=$(DEST)/share/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 $(SHARE)
	#manual page is installed by dh_installmanpages
	#$(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:	clean
	d=`pwd`; d=`basename $$d`; cd ..; tar czf /tmp/$$d.tar.gz \
			--exclude RCS \
			--exclude Old \
			$$d; echo "done.  distribution file is /tmp/$$d.tar.gz"

dist-install:	dist
	$(INSTALL) -c -m 664 -o pab -g www /tmp/dlint$(VERSION).tar.gz $(PUB)
	$(INSTALL) -c -m 664 -o pab -g www README $(PUB)/dlint$(VERSION)-readme.txt
	$(INSTALL) -c -m 664 -o pab -g www CHANGES $(PUB)/dlint$(VERSION)-changes.txt
#---