~ubuntu-branches/debian/stretch/win32-loader/stretch

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Jérémy Bobbio
  • Date: 2015-04-29 09:25:43 UTC
  • Revision ID: package-import@ubuntu.com-20150429092543-le45hrq81p65v9ww
Tags: 0.7.10
[ Jérémy Bobbio ]
* Make package build reproducibly:
  - Don't insert timestamps when building NSIS DLLs
  - Allow to set build date externally
  - Reset embedded file modification times to the build date
  - Set build date in debian/rules to the latest debian/changelog entry
* Makefile syntax fix in PXE targets definition

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
PACKAGE := win32-loader
8
8
VERSION := $(shell head -n 1 debian/changelog | sed -e "s/^$(PACKAGE) (\(.*\)).*/\1/g")
 
9
BUILD_DATE      ?= $(shell LC_ALL=C date +'%a, %d %b %Y %T %z')
 
10
FOUR_DIGITS_DATE        := $(shell date -u +'%Y.%m.%d.%H%M' --date="$(BUILD_DATE)")
9
11
 
10
 
NSIS_CC         := i686-w64-mingw32-gcc -Os
 
12
NSIS_CC         := i686-w64-mingw32-gcc -Os -Xlinker --no-insert-timestamp
11
13
NSIS_STRIP      := i686-w64-mingw32-strip
12
14
NSIS_CFLAGS     := -Wl,--file-alignment,512 -Werror -D_WIN32_WINNT=0x0500
13
15
 
23
25
MAKENSIS        := makensis -V3
24
26
 
25
27
# Add to it some version'ing and date
26
 
MAKENSIS        += -DVERSION=$(VERSION) -D4DIGITS_DATE=`date +%Y.%m.%d.%H%M`
 
28
MAKENSIS        += -DVERSION=$(VERSION) -D4DIGITS_DATE=$(FOUR_DIGITS_DATE)
27
29
 
28
30
ifdef OUTFILE_NAME
29
31
MAKENSIS        += -D_OUTFILE_NAME=$(OUTFILE_NAME)
111
113
        cp $^ $@
112
114
 
113
115
ifdef PXE
114
 
pxe.target: pxe.lkrn templates/ternary_choice.ini
 
116
PXE_TARGETS = pxe.lkrn templates/ternary_choice.ini
115
117
else
116
 
pxe.target:
 
118
PXE_TARGETS =
117
119
endif
118
120
 
119
121
templates/gtk.bmp: templates/gtk_orig.png
132
134
                templates/gtk.bmp templates/text.bmp \
133
135
                plugins/cpuid/test64.dll plugins/systeminfo/systeminfo.dll plugins/string.dll \
134
136
                plugins/sha1sum.dll \
135
 
                pxe.target \
 
137
                $(PXE_TARGETS) \
136
138
                win32-loader.ico loadlin.pif loadlin.exe g2ldr g2ldr.mbr
 
139
        find $^ -newermt "$(BUILD_DATE)" -print0 | xargs -0r touch --date="$(BUILD_DATE)"
137
140
        $(MAKE) -C l10n
138
141
        $(MAKENSIS) main.nsi
139
142
ifndef OUTFILE_NAME