X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2FMakefile;h=a936e642f60a741c6a2f57220ff40e3ccb6159d7;hp=e9f19e01bc7f12caeb9d8a3f4c59be337acc0833;hb=773df8155d824fb6387137ff0b8a1f6b81a300de;hpb=37e52bdb96b9730add76a3183a0fd0f6bbd6acf7 diff --git a/cprogs/Makefile b/cprogs/Makefile index e9f19e0..a936e64 100644 --- a/cprogs/Makefile +++ b/cprogs/Makefile @@ -21,6 +21,8 @@ # with this program; if not, consult the Free Software Foundation's # website at www.fsf.org, or the GNU Project website at www.gnu.org. +us= chiark-utils-bin + include ../settings.make RWBUFFER_SIZE_MB=16 @@ -31,8 +33,10 @@ SUIDSBINPROGRAMS= really DAEMONS= trivsoundd MAN1PAGES= readbuffer.1 writebuffer.1 with-lock-ex.1 MAN8PAGES= trivsoundd.8 really.8 +BUILTTXTDOCS= watershed.txt +TXTDOCS= $(BUILTTXTDOCS) -TARGETS= $(PROGRAMS) $(SUIDSBINPROGRAMS) $(DAEMONS) +TARGETS= $(PROGRAMS) $(SUIDSBINPROGRAMS) $(DAEMONS) $(BUILTTXTDOCS) all: $(TARGETS) @@ -56,6 +60,9 @@ rcopy-repeatedly: rcopy-repeatedly.o myopt.o watershed: watershed.o $(CC) -o $@ $< -lnettle -lgmp +watershed.txt: watershed.c + sed '/^$$/,$$d' <$^ >$@.new && mv -f $@.new $@ + install: all $(INSTALL_DIRECTORY) $(bindir) $(sbindir) $(INSTALL_PROGRAM) $(PROGRAMS) $(bindir) @@ -63,10 +70,11 @@ install: all $(INSTALL) -m 4774 -o root -g $(SYSTEM_GROUP) \ $(SUIDSBINPROGRAMS) $(sbindir) -install-docs: +install-docs: watershed.txt $(INSTALL_DIRECTORY) $(man1dir) $(man8dir) $(txtdocdir) $(INSTALL) -m 644 $(MAN1PAGES) ${man1dir}/. $(INSTALL) -m 644 $(MAN8PAGES) ${man8dir}/. + $(INSTALL) -m 644 $(TXTDOCS) ${txtdocdir}/. install-examples: