1 # for `make release' and `make html'
7 SCRIPTDIR
= $(PREFIX
)/bin
8 MANDIR
= $(PREFIX
)/man
/man1
10 IPROG
=# flags for installing programs (default none)
11 IDATA
= -m
0644 # flags for installing data
13 X11LIB
=-L
/usr
/X11R6
/lib
-lX11
20 $(CC
) $(CFLAGS
) -o
$@
$< $(X11LIB
)
26 rm -f
*.1 xcopy
*.html
*.
tar.gz
29 halibut
--html
=$(DESTDIR
)/xcopy.html xcopy.but
33 ln
-s ..
/..
/xcopy.c reltmp
/xcopy
34 ln
-s ..
/..
/xcopy
.1 reltmp
/xcopy
35 ln
-s ..
/..
/xcopy.but reltmp
/xcopy
36 ln
-s ..
/..
/Makefile reltmp
/xcopy
37 tar -C reltmp
-chzf
$(DESTDIR
)/xcopy.
tar.gz xcopy
40 install: install-progs install-man
44 $(INSTALL
) $(IPROG
) xcopy
$(BINDIR
)/xcopy
47 $(INSTALL
) $(IDATA
) xcopy
.1 $(MANDIR
)/xcopy
.1