a167537950474f704592542e3d85969c01c16315
[multipath-tools/.git] / devmap_name / Makefile
1 # Makefile
2 #
3 # Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@free.fr>
4 #
5 include ../Makefile.inc
6
7 EXEC = devmap_name
8 OBJS = devmap_name.o
9
10 LDFLAGS = -ldevmapper
11
12 all: $(EXEC)
13
14 $(EXEC): $(OBJS)
15         $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
16         $(GZIP) $(EXEC).8 > $(EXEC).8.gz
17
18 install: $(EXEC) $(EXEC).8
19         $(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
20         $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
21         $(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir)
22         $(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
23
24 uninstall:
25         rm $(DESTDIR)$(bindir)/$(EXEC)
26         rm $(DESTDIR)$(mandir)/$(EXEC).8.gz
27
28 clean:
29         rm -f core *.o $(EXEC) *.gz