ia64/xen-unstable

view tools/xentrace/Makefile @ 4537:8c272f9d3213

bitkeeper revision 1.1159.258.95 (42602010v-eE8RbyDMcA8iwS-dRkcg)

[PATCH] [PATCH] Man page path

The FHS has said that manpages go in /usr/share/man instead of /usr/man
since FHS 2.0 which dates back to 1997 or so, if I remember correctly.
Having the makefiles drop things in the right place makes the packages a
little cleaner.

Signed-off-by: Jeremy Katz <katzj@redhat.com>

===== tools/xentrace/Makefile 1.24 vs edited =====
author katzj@redhat.com[iap10]
date Fri Apr 15 20:12:00 2005 +0000 (2005-04-15)
parents a0be5e5a1f37
children 189085197f6d 18d709f72233
line source
1 INSTALL = install
2 INSTALL_PROG = $(INSTALL) -m0755
3 INSTALL_DIR = $(INSTALL) -d -m0755
4 INSTALL_DATA = $(INSTALL) -m0644
6 XEN_ROOT=../..
7 include $(XEN_ROOT)/tools/Rules.mk
9 CC = gcc
10 CFLAGS += -Wall -Werror -O3
12 CFLAGS += -I $(XEN_XC)
13 CFLAGS += -I $(XEN_LIBXC)
14 CFLAGS += -I $(XEN_LIBXUTIL)
16 HDRS = $(wildcard *.h)
17 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
19 BIN = xentrace
20 SCRIPTS = xentrace_format
21 MAN1 = $(wildcard *.1)
22 MAN8 = $(wildcard *.8)
24 all: build
25 build: $(BIN)
27 install: build
28 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
29 [ -d $(DESTDIR)/usr/share/man/man1 ] || \
30 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
31 [ -d $(DESTDIR)/usr/share/man/man8 ] || \
32 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
33 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
34 $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
35 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
37 clean:
38 $(RM) *.a *.so *.o *.rpm $(BIN)
40 %: %.c $(HDRS) Makefile
41 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil