17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 |
# |
# |
19 |
|
|
20 |
VERSION=$(shell cat ../VERSION) |
VERSION=$(shell cat VERSION) |
21 |
|
|
22 |
TARGETS = grubby |
TARGETS = grubby |
23 |
OBJECTS = grubby.o |
OBJECTS = grubby.o |
26 |
LDFLAGS := |
LDFLAGS := |
27 |
|
|
28 |
grubby_LIBS = -lblkid -lpopt |
grubby_LIBS = -lblkid -lpopt |
29 |
grubby_LIBS += $(shell pkg-config --libs glib-2.0) |
|
30 |
|
mandir = usr/share/man |
31 |
|
|
32 |
all: grubby |
all: grubby |
33 |
|
|
39 |
mkdir -p $(DESTDIR)/sbin |
mkdir -p $(DESTDIR)/sbin |
40 |
mkdir -p $(DESTDIR)/$(mandir)/man8 |
mkdir -p $(DESTDIR)/$(mandir)/man8 |
41 |
install -m 755 new-kernel-pkg $(DESTDIR)/sbin |
install -m 755 new-kernel-pkg $(DESTDIR)/sbin |
42 |
install -m 755 installkernel $(DESTDIR)/sbin |
install -m 644 new-kernel-pkg.8 $(DESTDIR)/$(mandir)/man8 |
43 |
if [ -f grubby ]; then \ |
if [ -f grubby ]; then \ |
44 |
install -m 755 grubby $(DESTDIR)/sbin ; \ |
install -m 755 grubby $(DESTDIR)/sbin ; \ |
45 |
install -m 644 grubby.8 $(DESTDIR)/$(mandir)/man8 ; \ |
install -m 644 grubby.8 $(DESTDIR)/$(mandir)/man8 ; \ |