~mdw
/
sgt
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace the somewhat contrived gcc example with oggenc, which is a
[sgt/utils]
/
xcopy
/
Makefile
diff --git
a/xcopy/Makefile
b/xcopy/Makefile
index
cd5c7be
..
9455264
100644
(file)
--- a/
xcopy/Makefile
+++ b/
xcopy/Makefile
@@
-4,11
+4,17
@@
DESTDIR = .
# for `make install'
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
# for `make install'
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
+SCRIPTDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man/man1
MANDIR = $(PREFIX)/man/man1
+INSTALL = install
+IPROG =# flags for installing programs (default none)
+IDATA = -m 0644 # flags for installing data
X11LIB=-L/usr/X11R6/lib -lX11
all: xcopy.1 xcopy
X11LIB=-L/usr/X11R6/lib -lX11
all: xcopy.1 xcopy
+man: xcopy.1
+progs: xcopy
xcopy: xcopy.c
$(CC) $(CFLAGS) -o $@ $< $(X11LIB)
xcopy: xcopy.c
$(CC) $(CFLAGS) -o $@ $< $(X11LIB)
@@
-31,8
+37,11
@@
release: xcopy.1
tar -C reltmp -chzf $(DESTDIR)/xcopy.tar.gz xcopy
rm -rf reltmp
tar -C reltmp -chzf $(DESTDIR)/xcopy.tar.gz xcopy
rm -rf reltmp
-install: xcopy xcopy.1
+install: install-progs install-man
+
+install-progs: xcopy
mkdir -p $(BINDIR)
mkdir -p $(BINDIR)
- install xcopy $(BINDIR)/xcopy
+ $(INSTALL) $(IPROG) xcopy $(BINDIR)/xcopy
+install-man: xcopy.1
mkdir -p $(MANDIR)
mkdir -p $(MANDIR)
-
install -m 0644
xcopy.1 $(MANDIR)/xcopy.1
+
$(INSTALL) $(IDATA)
xcopy.1 $(MANDIR)/xcopy.1