summaryrefslogtreecommitdiffstats
path: root/historic/selection/Makefile
blob: 4195d79d38fb03659066b8fed5a96d75cb6e0f95 (plain) (blame)
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
59
# Makefile for selection utility
# Andrew Haylett, 17th June 1993
# Minor modifications by Rik Faith (faith@cs.unc.edu), Sat Nov 20 09:47:59 1993

# bump .., since we live in historic now
include ../../MCONFIG
BINDIR = $(USRBINDIR)
MANEXT = 1

all:	selection test-mouse

selection:	selection.o mouse.o
	$(CC) $(LDFLAGS) -o selection selection.o mouse.o

test-mouse:	test-mouse.o mouse.o
	$(CC) $(LDFLAGS) -o test-mouse test-mouse.o mouse.o

mouse.o:	mouse.c mouse.h

selection.o:	selection.c mouse.h Makefile

test-mouse.o:	test-mouse.c mouse.h

selection.man:	selection.1
		nroff -man selection.1 > selection.man

install:	selection # selection.man
	$(INSTALLDIR) $(USRBINDIR) $(MAN1DIR)
	$(INSTALLBIN) selection $(USRBINDIR)
	$(INSTALLMAN) selection.1 $(MAN1DIR)

DIST = selection-1.5
DATE = 17th June 1993
PATCH = patch-0.99.10
SRC = README Makefile selection.1 mouse.c mouse.h selection.c test-mouse.c
DFILES = $(SRC) selection.man $(PATCH)
DIFF = diff
DFLAGS = -u

patch:
	(cd /usr/src/linux; \
	    $(DIFF) -c0 $(DFLAGS) config.in~ config.in; \
	    $(DIFF) $(DFLAGS) kernel/chr_drv/tty_ioctl.c~ kernel/chr_drv/tty_ioctl.c; \
	    $(DIFF) $(DFLAGS) kernel/chr_drv/console.c~ kernel/chr_drv/console.c) \
		> $(PATCH); true

update:
	perl -pi -e 's/\d+\S+ \S+ 199[3]/$(DATE)/' $(SRC)

dist:	update patch $(DFILES)
	rm -fr $(DIST)
	mkdir $(DIST)
	cp $(DFILES) $(DIST)
	tar cf - $(DIST) | gzip -c > $(DIST).tar.z
	rm -fr $(DIST)

clean:
	rm -f selection.o mouse.o test-mouse.o selection test-mouse \
		selection.man *~