chiark
/
gitweb
/
~mdw
/
rocl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use `auto-version' for discovering the package version.
[rocl]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 31b10dc2dd2c89d397e1e0e4b2f08cf7152b3743..8a8d8a1289345e8991f9f4fb82db4ea18947d79e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-7,7
+7,7
@@
CC = gcc
INCLUDES =
CFLAGS = \
CC = gcc
INCLUDES =
CFLAGS = \
- -O2 -g -Wall -funroll-loops -fomit-frame-pointer \
+ -O2 -g -Wall -f
PIC -f
unroll-loops -fomit-frame-pointer \
$(INCLUDES)
LD = gcc
LDFLAGS = -shared
$(INCLUDES)
LD = gcc
LDFLAGS = -shared
@@
-28,7
+28,7
@@
RM = rm
### Shouldn't need to fiddle with this stuff.
PACKAGE = rocl
### Shouldn't need to fiddle with this stuff.
PACKAGE = rocl
-VERSION =
1.1.5
+VERSION =
$(shell ./auto-version)
TCLSCRIPTS = \
elite-editor elite-pairs elite-path elite-find elite-map \
TCLSCRIPTS = \
elite-editor elite-pairs elite-path elite-find elite-map \
@@
-65,44
+65,45
@@
install: all
clean:
$(RM) -f *.o *.so pkgIndex.tcl
clean:
$(RM) -f *.o *.so pkgIndex.tcl
-
DISTDIR
= $(PACKAGE)-$(VERSION)
+
distdir
= $(PACKAGE)-$(VERSION)
DISTFILES = \
COPYING README Makefile $(SRCFILES) elite.tcl steele.cmdr \
DISTFILES = \
COPYING README Makefile $(SRCFILES) elite.tcl steele.cmdr \
- elite.def vec.def graph.def $(TCLSCRIPTS) \
+ elite.def vec.def graph.def $(TCLSCRIPTS)
auto-version
\
debian/rules debian/control debian/copyright debian/changelog
distdir: $(DISTFILES)
debian/rules debian/control debian/copyright debian/changelog
distdir: $(DISTFILES)
- $(RM) -rf $(DISTDIR)
- mkdir $(DISTDIR) $(DISTDIR)/debian
+ $(RM) -rf $(distdir)
+ mkdir $(distdir) $(distdir)/debian
+ echo $(VERSION) >$(distdir)/RELEASE
for i in $(DISTFILES); do \
case $$i in \
*/*) \
dir=$${i%/*}; \
up=`echo $$dir | sed 's:[^/]\+:..:g'`; \
for i in $(DISTFILES); do \
case $$i in \
*/*) \
dir=$${i%/*}; \
up=`echo $$dir | sed 's:[^/]\+:..:g'`; \
- mkdir -p $(
DISTDIR
)/$$dir;; \
+ mkdir -p $(
distdir
)/$$dir;; \
*) dir= up=;; \
esac; \
*) dir= up=;; \
esac; \
- ln -s ../$$up/$$i $(
DISTDIR
)/$$i; \
+ ln -s ../$$up/$$i $(
distdir
)/$$i; \
done
disttar: distdir
done
disttar: distdir
- tar chofz $(INST)$(
DISTDIR).tar.gz $(DISTDIR
)
+ tar chofz $(INST)$(
distdir).tar.gz $(distdir
)
distzip: distdir
distzip: distdir
- cd $(
DISTDIR) && zip -rq ../$(INST)$(DISTDIR
).zip .
+ cd $(
distdir) && zip -rq ../$(INST)$(distdir
).zip .
dist: disttar distzip
dist: disttar distzip
- $(RM) -rf $(
DISTDIR
)
+ $(RM) -rf $(
distdir
)
distcheck: dist
@echo "*** Packing..."
$(MAKE) dist
@echo "*** Unpacking..."
distcheck: dist
@echo "*** Packing..."
$(MAKE) dist
@echo "*** Unpacking..."
- tar xfz $(
DISTDIR
).tar.gz
+ tar xfz $(
distdir
).tar.gz
@echo "*** Test building..."
set -e; \
@echo "*** Test building..."
set -e; \
- cd $(
DISTDIR
); \
+ cd $(
distdir
); \
$(MAKE) clean; \
$(MAKE); \
$(MAKE) install INST=inst; \
$(MAKE) dist
@echo "*** Tidying up..."
$(MAKE) clean; \
$(MAKE); \
$(MAKE) install INST=inst; \
$(MAKE) dist
@echo "*** Tidying up..."
- rm -rf $(
DISTDIR
)
+ rm -rf $(
distdir
)
@echo "*** All OK"
.PHONY: all install clean dist disttar distzip distdir distcheck
@echo "*** All OK"
.PHONY: all install clean dist disttar distzip distdir distcheck