File: Makefile

package info (click to toggle)
lvm-common 1.5.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 256 kB
  • ctags: 1,100
  • sloc: ansic: 1,697; sh: 98; makefile: 64
file content (27 lines) | stat: -rw-r--r-- 772 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

LVMIOPSOURCES = lvmiopversion.c lvm_get_iop_version.c lvm_check_special.c

all: lvmiopversion

lvmiopversion: $(LVMIOPSOURCES) lvm_user.h liblvm.h lvm.h
	gcc -g -O2 -I. -o $@ $(LVMIOPSOURCES)

clean:
	rm -f lvmiopversion

install:
	install -d -o root -g root -m 0755 $(DESTDIR)/sbin
	install -o root -g root -m 0755 lvmiopversion \
		$(DESTDIR)/sbin/lvmiopversion

	install -d -o root -g root -m 0755 $(DESTDIR)/usr/sbin
	install -o root -g root -m 0755 \
		lvm-bin-scan $(DESTDIR)/usr/sbin/lvm-bin-scan

	install -d -o root -g root -m 0755 $(DESTDIR)/usr/share/man/man1
	install -p -o root -g root -m 0644 lvmiopversion.1 \
		$(DESTDIR)/usr/share/man/man1/
	install -p -o root -g root -m 0644 lvm-bin-scan.1 \
		$(DESTDIR)/usr/share/man/man1/

.PHONY: all clean install