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