~mdw
/
sgt
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cope with processes owned by someone other than us (for which
[sgt/utils]
/
nntpid
/
Makefile
diff --git
a/nntpid/Makefile
b/nntpid/Makefile
index
686f376
..
2b8a9c8
100644
(file)
--- a/
nntpid/Makefile
+++ b/
nntpid/Makefile
@@
-11,6
+11,8
@@
IPROG =# flags for installing programs (default none)
IDATA = -m 0644 # flags for installing data
all: nntpid.1
IDATA = -m 0644 # flags for installing data
all: nntpid.1
+man: nntpid.1
+progs:;
%.1: %.but
halibut --man=$@ $<
%.1: %.but
halibut --man=$@ $<
@@
-19,7
+21,8
@@
clean:
rm -f *.1 *.html *.tar.gz
html:
rm -f *.1 *.html *.tar.gz
html:
- halibut --html=$(DESTDIR)/nntpid.html nntpid.but
+ halibut --html=nntpid.html nntpid.but
+ mv nntpid.html $(DESTDIR)
release: nntpid.1
mkdir -p reltmp/nntpid
release: nntpid.1
mkdir -p reltmp/nntpid
@@
-30,8
+33,10
@@
release: nntpid.1
tar -C reltmp -chzf $(DESTDIR)/nntpid.tar.gz nntpid
rm -rf reltmp
tar -C reltmp -chzf $(DESTDIR)/nntpid.tar.gz nntpid
rm -rf reltmp
-install: nntpid.1
+install: install-progs install-man
+install-progs:
mkdir -p $(SCRIPTDIR)
$(INSTALL) $(IPROG) nntpid $(SCRIPTDIR)/nntpid
mkdir -p $(SCRIPTDIR)
$(INSTALL) $(IPROG) nntpid $(SCRIPTDIR)/nntpid
+install-man: nntpid.1
mkdir -p $(MANDIR)
$(INSTALL) $(IDATA) nntpid.1 $(MANDIR)/nntpid.1
mkdir -p $(MANDIR)
$(INSTALL) $(IDATA) nntpid.1 $(MANDIR)/nntpid.1