summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-22 16:35:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-22 16:35:11 -0700
commit9b8f0ad113f6f7b420f1ac500dbd557dab33953f (patch)
treeed9cf037a8736d0d1b665f4664063b83c92b71de /Makefile.in
parentb10f3e2dca1df539350ca3a77092d64fe44ceb25 (diff)
downloadnasm-9b8f0ad113f6f7b420f1ac500dbd557dab33953f.tar.gz
nasm-9b8f0ad113f6f7b420f1ac500dbd557dab33953f.tar.bz2
nasm-9b8f0ad113f6f7b420f1ac500dbd557dab33953f.zip
Update nasm.spec.in and make it handle rc releases
Update nasm.spec.in to match modern conventions, and make it handle rc releases by using the "mangled" version of the name (1.99.99.91 instead of 2.0rc1).
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 1a43f55..ab8973d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -93,6 +93,9 @@ version.h: version version.pl
version.mac: version version.pl
$(PERL) $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
+version.sed: version version.pl
+ $(PERL) $(srcdir)/version.pl sed < $(srcdir)/version > version.sed
+
# This source file is generated from the standard macros file
# `standard.mac' by another Perl script. Again, it's part of the
# standard distribution.
@@ -187,9 +190,8 @@ tar: dist
spec: nasm.spec
-nasm.spec: nasm.spec.in version version.pl
- sed -e s/@@VERSION@@/`cat $(srcdir)/version`/g \
- < nasm.spec.in > nasm.spec
+nasm.spec: nasm.spec.in version.sed
+ sed -f version.sed < nasm.spec.in > nasm.spec
splint:
splint -weak *.c