summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2006-01-02 23:21:10 +0000
committerGeorge Williams <gww@silcom.com>2006-01-02 23:21:10 +0000
commit1356fc3e3f59907169ee6311b0dbb02602adc9c8 (patch)
tree07cf39f96772569c353f49f5db1a01172906c9ab
parent6cb85dab1e2e6af5aa2f84040ae1678e4f478a7b (diff)
Another patch from Han-Wen. He says it's to set the version.
-rw-r--r--Makefile.in14
-rwxr-xr-xconfigure1
-rw-r--r--configure.in1
3 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 7d075f8..6f1f45a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,3 +1,5 @@
+# @configure_input@
+
wilprefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
@@ -8,7 +10,7 @@ VPATH = @srcdir@
HOST= @HOST@
-DARWIN_CORE = $(if $(findstring apple-darwin,$(HOST)),/System/Library/Frameworks/CoreServices.framework/CoreServices,,)
+DARWIN_CORE = $(if $(findstring apple-darwin,$(HOST)),/System/Library/Frameworks/CoreServices.framework/CoreServices,)
WFLAGS = -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -pedantic
CFLAGS = -g $(WFLAGS)
@@ -58,7 +60,8 @@ install: all
mkdir -p $(DESTDIR)$(bindir)
cp fondu ufond showfond dfont2res tobin frombin lumper setfondname $(DESTDIR)$(bindir)
-VERSION=051010
+
+VERSION:=$(shell date +"%y%d%m")
DISTNAME=fondu-$(VERSION)
DISTFILES=$(wildcard *.c *.1 *.h) README Makefile.in configure.in configure \
LICENSE install-sh config.sub config.guess
@@ -69,3 +72,10 @@ dist:
ln $(DISTFILES) $(DISTNAME)/
tar cfz $(DISTNAME).tar.gz $(DISTNAME)
rm -fr $(DISTNAME)
+
+Makefile: Makefile.in
+ chmod +w $@
+ ./config.status
+ chmod -w $@
+
+
diff --git a/configure b/configure
index 3e02a54..1bdfe38 100755
--- a/configure
+++ b/configure
@@ -3177,3 +3177,4 @@ if test "$no_create" != yes; then
$ac_cs_success || { (exit 1); exit 1; }
fi
+chmod -w Makefile
diff --git a/configure.in b/configure.in
index 1f238df..3cfb55e 100644
--- a/configure.in
+++ b/configure.in
@@ -9,3 +9,4 @@ AC_SUBST(VPATH)
AC_SUBST(HOST)
AC_OUTPUT(Makefile)
+chmod -w Makefile