diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-29 20:03:35 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-29 20:03:35 +0000 |
commit | 98c0214d267c596eaa40d8904f15db24833e8b1f (patch) | |
tree | 0c81501336c3e63527ca9ba37379f72a22322e70 /Makefile | |
parent | fa4c185bef9389e3cb9b8d64e09041011ddce78f (diff) | |
download | build-98c0214d267c596eaa40d8904f15db24833e8b1f.tar.gz build-98c0214d267c596eaa40d8904f15db24833e8b1f.tar.bz2 build-98c0214d267c596eaa40d8904f15db24833e8b1f.tar.xz build-98c0214d267c596eaa40d8904f15db24833e8b1f.zip |
Setup the new makefile to auto-create tarballs, something build should do soon.
It puts a slimmed down makefile into the tarball, along with all of the checked
out libbu++ files, so you should just need to compile (if you have the right
flex and bison).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -1,14 +1,31 @@ | |||
1 | LIBBU:=$(foreach f,paramproc.h paramproc.cpp staticstring.h staticstring.cpp exceptions.h exceptions.cpp serializable.h serializable.cpp exceptionbase.h exceptionbase.cpp plugger.h plugger.cpp singleton.h hashtable.cpp hashtable.h hashfunction.h hashfunction.cpp hashfunctionint.cpp hashfunctionint.h hashfunctionstring.cpp hashfunctionstring.h serializerbinary.cpp serializerbinary.h serializer.cpp serializer.h stringrep.h stringrep.cpp,src/$f) | 1 | LIBBU:=$(foreach f,paramproc.h paramproc.cpp staticstring.h staticstring.cpp exceptions.h exceptions.cpp serializable.h serializable.cpp exceptionbase.h exceptionbase.cpp plugger.h plugger.cpp singleton.h hashtable.cpp hashtable.h hashfunction.h hashfunction.cpp hashfunctionint.cpp hashfunctionint.h hashfunctionstring.cpp hashfunctionstring.h serializerbinary.cpp serializerbinary.h serializer.cpp serializer.h stringrep.h stringrep.cpp,src/$f) |
2 | SRC:=$(sort $(wildcard src/*.cpp) $(filter %.cpp,$(LIBBU))) | 2 | SRC:=$(sort $(wildcard src/*.cpp) $(filter %.cpp,$(LIBBU))) |
3 | OBJ:=src/build.yy.o src/build.tab.o $(patsubst %.cpp,%.o,$(SRC)) | 3 | OBJ:=src/build.yy.o src/build.tab.o $(patsubst %.cpp,%.o,$(SRC)) |
4 | REV:=$(shell svn info | grep "Revision" | cut -d\ -f2) | ||
5 | VER:=r$(REV) | ||
6 | PKG:=build-$(VER).tar.bz2 | ||
4 | 7 | ||
5 | .PHONY: all extern clean | 8 | .PHONY: all extern clean depclean package |
6 | # .SILENT: | 9 | # .SILENT: |
7 | 10 | ||
8 | all: extern build | 11 | all: extern build |
9 | 12 | ||
13 | package: clean depclean extern $(PKG) | ||
14 | |||
15 | $(PKG): | ||
16 | mkdir build-$(VER) | ||
17 | mkdir build-$(VER)/src | ||
18 | cp -a src/*.{cpp,h,y,l} build-$(VER)/src | ||
19 | cp -a build.conf build-$(VER) | ||
20 | cp -a Makefile.slim build-$(VER)/Makefile | ||
21 | tar -c build-$(VER) | bzip2 -9 > $(PKG) | ||
22 | rm -Rf build-$(VER) | ||
23 | |||
10 | clean: | 24 | clean: |
11 | -rm -Rf $(LIBBU) build $(OBJ) | 25 | -rm -Rf build $(OBJ) |
26 | |||
27 | depclean: | ||
28 | -rm -Rf $(LIBBU) | ||
12 | 29 | ||
13 | extern: $(LIBBU) | 30 | extern: $(LIBBU) |
14 | 31 | ||