Annotation of /trunk/grubby/Makefile
Parent Directory
|
Revision Log
Revision 1153 -
(hide annotations)
(download)
Tue Sep 14 19:37:47 2010 UTC (13 years, 8 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/Makefile
File size: 1451 byte(s)
Tue Sep 14 19:37:47 2010 UTC (13 years, 8 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/Makefile
File size: 1451 byte(s)
-install grubby man-page
1 | niro | 914 | # |
2 | # Makefile | ||
3 | # | ||
4 | # Copyright 2007-2009 Red Hat, Inc. All rights reserved. | ||
5 | # | ||
6 | # This program is free software; you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation; either version 2 of the License, or | ||
9 | # (at your option) any later version. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | # | ||
19 | |||
20 | niro | 532 | VERSION=$(shell cat ../VERSION) |
21 | |||
22 | niro | 914 | TARGETS = grubby |
23 | OBJECTS = grubby.o | ||
24 | niro | 532 | |
25 | niro | 914 | CFLAGS := $(CFLAGS) $(RPM_OPT_FLAGS) -DVERSION='"$(VERSION)"' -Wall -Werror |
26 | LDFLAGS := | ||
27 | niro | 532 | |
28 | niro | 914 | grubby_LIBS = -lblkid -lpopt |
29 | grubby_LIBS += $(shell pkg-config --libs glib-2.0) | ||
30 | niro | 532 | |
31 | niro | 937 | mandir = usr/share/man |
32 | |||
33 | niro | 914 | all: grubby |
34 | niro | 532 | |
35 | niro | 914 | test: all |
36 | @export TOPDIR=$(TOPDIR) | ||
37 | niro | 532 | @./test.sh |
38 | |||
39 | niro | 914 | install: all |
40 | niro | 532 | mkdir -p $(DESTDIR)/sbin |
41 | niro | 914 | mkdir -p $(DESTDIR)/$(mandir)/man8 |
42 | niro | 532 | install -m 755 new-kernel-pkg $(DESTDIR)/sbin |
43 | niro | 1153 | install -m 644 new-kernel-pkg.8 $(DESTDIR)/$(mandir)/man8 |
44 | niro | 532 | if [ -f grubby ]; then \ |
45 | install -m 755 grubby $(DESTDIR)/sbin ; \ | ||
46 | niro | 914 | install -m 644 grubby.8 $(DESTDIR)/$(mandir)/man8 ; \ |
47 | niro | 532 | fi |
48 | |||
49 | niro | 914 | grubby:: $(OBJECTS) |
50 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(grubby_LIBS) | ||
51 | niro | 532 | |
52 | clean: | ||
53 | niro | 914 | rm -f *.o grubby *~ |