Imported Debian patch 0.4.9-1
[debian/efibootmgr] / Makefile
1   default: all
2
3   RELEASE_DATE := "09-Jun-2004"
4   RELEASE_MAJOR := 0
5   RELEASE_MINOR := 5
6   RELEASE_SUBLEVEL := 0
7   RELEASE_EXTRALEVEL := -test4
8   RELEASE_NAME := efibootmgr
9   RELEASE_STRING := $(RELEASE_NAME)-$(RELEASE_MAJOR).$(RELEASE_MINOR).$(RELEASE_SUBLEVEL)$(RELEASE_EXTRALEVEL)
10
11   CFLAGS += -DEFIBOOTMGR_VERSION=\"$(RELEASE_MAJOR).$(RELEASE_MINOR).$(RELEASE_SUBLEVEL)$(RELEASE_EXTRALEVEL)\" -Wall
12
13   MODULES := src
14
15   BINDIR := /usr/sbin
16
17 #--------------------------------------------
18 # Generic Makefile stuff is below. You
19 #  should not have to modify any of the stuff
20 #  below.
21 #--------------------------------------------
22
23 #Included makefiles will add their deps for each stage in these vars:
24   INSTALLDEPS :=
25   CLEANDEPS :=
26   ALLDEPS :=
27   CLEANLIST :=
28
29 #Define the top-level build directory
30   BUILDDIR := $(shell pwd)
31
32 #Include make rules from each submodule (subdirectory)
33   include $(patsubst %,%/module.mk,$(MODULES))
34
35   .PHONY: all clean install_list install install_link post_install tarball echotree default
36
37   all:  $(ALLDEPS) 
38   clean: clean_list $(CLEANDEPS) 
39
40   clean_list:
41         rm -f $(CLEANLIST)
42
43   install_list: echotree $(INSTALLDEPS) 
44
45   install: all 
46         @make install_list | tools/install.pl copy
47
48   install_link: all
49         @make install_list | tools/install.pl link
50
51   post_install: 
52
53   tarball: clean
54         -rm $(RELEASE_NAME)*.tar.gz
55         cp -a ../$(RELEASE_NAME) ../$(RELEASE_STRING)
56         find ../$(RELEASE_STRING) -name CVS -type d -depth -exec rm -rf \{\} \;
57         sync; sync; sync;
58         cd ..; tar cvzf $(RELEASE_STRING).tar.gz $(RELEASE_STRING)
59         mv ../$(RELEASE_STRING).tar.gz .
60         rm -rf ../$(RELEASE_STRING)
61
62
63 #The rest of the docs...
64   doc_TARGETS += COPYING README INSTALL
65
66 echotree:
67         @# making directory tree 
68         @#RPM FORMAT:
69         @# %defattr(-, user, group) 
70         @# %attr(4755,user,group)  filename
71         @# filename
72
73 # Here is a list of variables that are assumed Local to each Makefile. You can
74 #   safely stomp on these values without affecting the build.
75 #       MODULES
76 #       FILES
77 #       TARGETS
78 #       SOURCES