X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=28fb2d4b753846fde5b3b243495b98f3b041c22a;hb=677250d4f088e9438e86d09f8b8c80d49bd6b294;hp=a4293c70855de02f0d9069ff3ec9e90ce4958886;hpb=76c1de74e9dbdeef52629632de91a50ed6e20dbe;p=adu.git diff --git a/Makefile b/Makefile index a4293c7..28fb2d4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -objects := adu.o string.o cmdline.o fd.o select.o create.o interactive.o select.cmdline.o format.o user.o +objects := adu.o string.o cmdline.o fd.o select.o create.o interactive.o select.cmdline.o format.o user.o bloom.o all: adu version := 0.0.5 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') @@ -19,6 +19,8 @@ CPPFLAGS += -I/usr/local/include LDFLAGS += -L/usr/local/lib +PREFIX ?= /usr/local + ifeq (,$(findstring BSD,$(uname_S))) CPPFLAGS += -D_LARGEFILE64_SOURCE @@ -82,3 +84,7 @@ index.html: adu.1.html index.html.in INSTALL README sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@ sed -e '1,/Return to Main Contents/d' -e '/Index/,$$d' adu.1.html >> $@ sed -e '1,/@MAN_PAGE@/d' index.html.in >> $@ + +install: adu adu.1 + install -s adu $(PREFIX)/bin + install -m 0644 adu.1 $(PREFIX)/man/man1