~ubuntu-branches/ubuntu/raring/efibootmgr/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/ldflags.patch/Makefile

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-02-01 15:54:24 UTC
  • mfrom: (15.1.3 efibootmgr)
  • Revision ID: package-import@ubuntu.com-20130201155424-cxpynj5jqjvv1b84
Tags: 0.5.4-4ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Fix implementation of -w option to match documentation by leaving an
    existing unique MBR signature intact.

Show diffs side-by-side

added added

removed removed

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