forked from ni/efibootmgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
81 lines (61 loc) · 2.15 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
default: all
SIGNING_KEY := jordan_hargrave
RELEASE_DATE := "23-Jan-2013"
RELEASE_MAJOR := 0
RELEASE_MINOR := 6
RELEASE_SUBLEVEL := 0
RELEASE_EXTRALEVEL :=
RELEASE_NAME := efibootmgr
RELEASE_STRING := $(RELEASE_NAME)-$(RELEASE_MAJOR).$(RELEASE_MINOR).$(RELEASE_SUBLEVEL)$(RELEASE_EXTRALEVEL)
CFLAGS = $(EXTRA_CFLAGS) -DEFIBOOTMGR_VERSION=\"$(RELEASE_MAJOR).$(RELEASE_MINOR).$(RELEASE_SUBLEVEL)$(RELEASE_EXTRALEVEL)\" \
-Wall -g -D_FILE_OFFSET_BITS=64
MODULES := src
BINDIR := /usr/sbin
#--------------------------------------------
# Generic Makefile stuff is below. You
# should not have to modify any of the stuff
# below.
#--------------------------------------------
#Included makefiles will add their deps for each stage in these vars:
INSTALLDEPS :=
CLEANDEPS :=
ALLDEPS :=
CLEANLIST :=
#Define the top-level build directory
BUILDDIR := $(shell pwd)
#Include make rules from each submodule (subdirectory)
include $(patsubst %,%/module.mk,$(MODULES))
.PHONY: all clean install_list install install_link post_install tarball echotree default
all: $(ALLDEPS)
clean: clean_list $(CLEANDEPS)
clean_list:
rm -f $(CLEANLIST)
install_list: echotree $(INSTALLDEPS)
install: all
@make install_list | tools/install.pl copy
install_link: all
@make install_list | tools/install.pl link
post_install:
tarball: clean
-rm $(RELEASE_NAME)*.tar.gz
cp -a ../$(RELEASE_NAME) ../$(RELEASE_STRING)
find ../$(RELEASE_STRING) -name CVS -type d -depth -exec rm -rf \{\} \;
sync; sync; sync;
cd ..; tar cvzf $(RELEASE_STRING).tar.gz --exclude=.git --exclude=\*~ $(RELEASE_STRING)
mv ../$(RELEASE_STRING).tar.gz .
rm -rf ../$(RELEASE_STRING)
gpg -a -u $(SIGNING_KEY) --output $(RELEASE_STRING).tar.gz.sign --detach-sig $(RELEASE_STRING).tar.gz
#The rest of the docs...
doc_TARGETS += COPYING README INSTALL
echotree:
@# making directory tree
@#RPM FORMAT:
@# %defattr(-, user, group)
@# %attr(4755,user,group) filename
@# filename
# Here is a list of variables that are assumed Local to each Makefile. You can
# safely stomp on these values without affecting the build.
# MODULES
# FILES
# TARGETS
# SOURCES