Browse code

updating sems rpm specfile to use also release number updating rpmtar makefile target to use also release number

Pavel Kasparek authored on 01/03/2013 08:50:21 • Raphael Coeffic committed on 01/03/2013 10:37:23
Showing 1 changed files
... ...
@@ -76,10 +76,14 @@ tar:
76 76
 			                               "$(NAME)-$(RELEASE)" ) ; \
77 77
 			    rm -rf tmp
78 78
 
79
+# the rpmtar target creates source tar.gz file, with versions taken from rpm spec file
80
+# the tarball can be used for rpm building 
79 81
 .PHONY: rpmtar
80 82
 rpmtar: 
81 83
 	RPM_VERSION=`cat pkg/rpm/sems.spec|grep -e "^Version:"|awk '{print $$2}'`; \
84
+	RPM_RELEASE=`cat pkg/rpm/sems.spec|grep -e "^Release:"|awk '{print $$2}'`; \
82 85
 	echo "RPM_VERSION=$${RPM_VERSION}"; \
86
+	echo "RPM_RELEASE=$${RPM_RELEASE}"; \
83 87
 	        $(TAR) -C .. \
84 88
                 --exclude=$(notdir $(CURDIR))/tmp \
85 89
                 --exclude=core/$(notdir $(CURDIR))/tmp \
... ...
@@ -101,7 +105,7 @@ rpmtar:
101 105
                             mv tmp/_tar1/$(notdir $(CURDIR)) \
102 106
                                tmp/_tar2/"$(NAME)-$${RPM_VERSION}" && \
103 107
                             (cd tmp/_tar2 && $(TAR) \
104
-                                            -zcf ../../"$(NAME)-$${RPM_VERSION}".tar.gz \
108
+                                            -zcf ../../"$(NAME)-$${RPM_VERSION}-$${RPM_RELEASE}".tar.gz \
105 109
                                                        "$(NAME)-$${RPM_VERSION}" ) ; \
106 110
                             rm -rf tmp;
107 111
   
Browse code

- replacing Makefile targer rpm with just rpmtar, building rpm from makefile does not work - updating sems spec file to install stuff to correct places

Pavel Kasparek authored on 26/02/2013 16:58:20 • Raphael Coeffic committed on 28/02/2013 12:11:29
Showing 1 changed files
... ...
@@ -76,8 +76,8 @@ tar:
76 76
 			                               "$(NAME)-$(RELEASE)" ) ; \
77 77
 			    rm -rf tmp
78 78
 
79
-.PHONY: rpm
80
-rpm: 
79
+.PHONY: rpmtar
80
+rpmtar: 
81 81
 	RPM_VERSION=`cat pkg/rpm/sems.spec|grep -e "^Version:"|awk '{print $$2}'`; \
82 82
 	echo "RPM_VERSION=$${RPM_VERSION}"; \
83 83
 	        $(TAR) -C .. \
... ...
@@ -103,10 +103,7 @@ rpm:
103 103
                             (cd tmp/_tar2 && $(TAR) \
104 104
                                             -zcf ../../"$(NAME)-$${RPM_VERSION}".tar.gz \
105 105
                                                        "$(NAME)-$${RPM_VERSION}" ) ; \
106
-                            rm -rf tmp; \
107
-		mkdir -p ~/rpmbuild/SOURCES; \
108
-		cp "$(NAME)-$${RPM_VERSION}".tar.gz ~/rpmbuild/SOURCES
109
-		rpmbuild -ba pkg/rpm/sems.spec
106
+                            rm -rf tmp;
110 107
   
111 108
 .PHONY: doc
112 109
 doc:
Browse code

fixed typo in makefile

Pavel Kasparek authored on 26/02/2013 14:46:08 • Raphael Coeffic committed on 28/02/2013 12:11:29
Showing 1 changed files
... ...
@@ -104,7 +104,7 @@ rpm:
104 104
                                             -zcf ../../"$(NAME)-$${RPM_VERSION}".tar.gz \
105 105
                                                        "$(NAME)-$${RPM_VERSION}" ) ; \
106 106
                             rm -rf tmp; \
107
-		mkdir p ~/rpmbuild/SOURCES; \
107
+		mkdir -p ~/rpmbuild/SOURCES; \
108 108
 		cp "$(NAME)-$${RPM_VERSION}".tar.gz ~/rpmbuild/SOURCES
109 109
 		rpmbuild -ba pkg/rpm/sems.spec
110 110
   
Browse code

- set rpm version to 1.6.0 in rpm spec file - add "make rpm" section to main Makefile

Pavel Kasparek authored on 26/02/2013 14:21:36 • Raphael Coeffic committed on 28/02/2013 12:11:29
Showing 1 changed files
... ...
@@ -76,6 +76,38 @@ tar:
76 76
 			                               "$(NAME)-$(RELEASE)" ) ; \
77 77
 			    rm -rf tmp
78 78
 
79
+.PHONY: rpm
80
+rpm: 
81
+	RPM_VERSION=`cat pkg/rpm/sems.spec|grep -e "^Version:"|awk '{print $$2}'`; \
82
+	echo "RPM_VERSION=$${RPM_VERSION}"; \
83
+	        $(TAR) -C .. \
84
+                --exclude=$(notdir $(CURDIR))/tmp \
85
+                --exclude=core/$(notdir $(CURDIR))/tmp \
86
+                --exclude=.svn* \
87
+                --exclude=.git* \
88
+                --exclude=.\#* \
89
+                --exclude=*.[do] \
90
+                --exclude=*.la \
91
+                --exclude=*.lo \
92
+                --exclude=*.so \
93
+                --exclude=*.il \
94
+                --exclude=*.gz \
95
+                --exclude=*.bz2 \
96
+                --exclude=*.tar \
97
+                --exclude=*~ \
98
+                -cf - $(notdir $(CURDIR)) | \
99
+                        (mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
100
+                            cd tmp/_tar1; $(TAR) -xf - ) && \
101
+                            mv tmp/_tar1/$(notdir $(CURDIR)) \
102
+                               tmp/_tar2/"$(NAME)-$${RPM_VERSION}" && \
103
+                            (cd tmp/_tar2 && $(TAR) \
104
+                                            -zcf ../../"$(NAME)-$${RPM_VERSION}".tar.gz \
105
+                                                       "$(NAME)-$${RPM_VERSION}" ) ; \
106
+                            rm -rf tmp; \
107
+		mkdir p ~/rpmbuild/SOURCES; \
108
+		cp "$(NAME)-$${RPM_VERSION}".tar.gz ~/rpmbuild/SOURCES
109
+		rpmbuild -ba pkg/rpm/sems.spec
110
+  
79 111
 .PHONY: doc
80 112
 doc:
81 113
 	make -C doc/ doc
Browse code

make name of sems binary and install dirs configurable

... to allow coexistence of different sems versions on one machine

Conflicts:
core/Makefile

Václav Kubart authored on 23/01/2013 18:41:10 • Raphael Coeffic committed on 28/02/2013 12:11:27
Showing 1 changed files
... ...
@@ -1,5 +1,3 @@
1
-NAME=sems
2
-
3 1
 .DEFAULT_GOAL:=all
4 2
 
5 3
 .PHONY: all
... ...
@@ -8,6 +6,8 @@ all: modules
8 6
 COREPATH=core
9 7
 include Makefile.defs
10 8
 
9
+NAME=$(APP_NAME)
10
+
11 11
 subdirs = core apps tools
12 12
 
13 13
 .PHONY: clean
... ...
@@ -43,7 +43,7 @@ install:
43 43
 	@echo ""
44 44
 	@echo "*** install complete. Run SEMS with "
45 45
 	@echo "*** "
46
-	@echo "***   $(bin-target)sems -f $(cfg-target)sems.conf"
46
+	@echo "***   $(bin-target)$(NAME) -f $(cfg-target)sems.conf"
47 47
 
48 48
 
49 49
 .PHONY: dist
Browse code

moved tools directory; added threadid column to logfile splitter

Stefan Sayer authored on 23/02/2011 10:19:32
Showing 1 changed files
... ...
@@ -8,7 +8,7 @@ all: modules
8 8
 COREPATH=core
9 9
 include Makefile.defs
10 10
 
11
-subdirs = core apps
11
+subdirs = core apps tools
12 12
 
13 13
 .PHONY: clean
14 14
 clean:
Browse code

exclude .git from tar

Stefan Sayer authored on 26/09/2010 13:03:44
Showing 1 changed files
... ...
@@ -55,6 +55,7 @@ tar:
55 55
 		--exclude=$(notdir $(CURDIR))/tmp \
56 56
 		--exclude=core/$(notdir $(CURDIR))/tmp \
57 57
 		--exclude=.svn* \
58
+		--exclude=.git* \
58 59
 		--exclude=.\#* \
59 60
 		--exclude=*.[do] \
60 61
 		--exclude=*.la \
Browse code

Changes the name of the directory within tar archives to include the full release version (including SVN version)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1932 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 26/05/2010 10:12:48
Showing 1 changed files
... ...
@@ -69,10 +69,10 @@ tar:
69 69
 			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
70 70
 			    cd tmp/_tar1; $(TAR) -xf - ) && \
71 71
 			    mv tmp/_tar1/$(notdir $(CURDIR)) \
72
-			       tmp/_tar2/"$(NAME)-$(REL_VERSION)" && \
72
+			       tmp/_tar2/"$(NAME)-$(RELEASE)" && \
73 73
 			    (cd tmp/_tar2 && $(TAR) \
74 74
 			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
75
-			                               "$(NAME)-$(REL_VERSION)" ) ; \
75
+			                               "$(NAME)-$(RELEASE)" ) ; \
76 76
 			    rm -rf tmp
77 77
 
78 78
 .PHONY: doc
Browse code

- moved 'make doc|fulldoc' to the doc/ directory.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1745 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 31/03/2010 15:50:14
Showing 1 changed files
... ...
@@ -13,7 +13,7 @@ subdirs = core apps
13 13
 .PHONY: clean
14 14
 clean:
15 15
 	-@rm -f *.so
16
-	-@for r in $(subdirs) "" ; do \
16
+	-@for r in $(subdirs) doc "" ; do \
17 17
 		if [ -n "$$r" ]; then \
18 18
 			echo "" ; \
19 19
 			echo "making $$r" ; \
... ...
@@ -77,8 +77,8 @@ tar:
77 77
 
78 78
 .PHONY: doc
79 79
 doc:
80
-	make -C core/ doc
80
+	make -C doc/ doc
81 81
 
82 82
 .PHONY: fulldoc
83 83
 fulldoc:
84
-	make -C core/ fulldoc
84
+	make -C doc/ fulldoc
Browse code

- splits the exclude_modules in three variables (exclude_core_module, exclude_apps_modules,exclude_dsm_modules). - exclude_dsm_modules is set in apps/dsm/mods/Makefile, the two others are set in Makefile.defs.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1741 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 31/03/2010 15:04:45
Showing 1 changed files
... ...
@@ -8,32 +8,32 @@ all: modules
8 8
 COREPATH=core
9 9
 include Makefile.defs
10 10
 
11
-modules = core apps
11
+subdirs = core apps
12 12
 
13 13
 .PHONY: clean
14 14
 clean:
15 15
 	-@rm -f *.so
16
-	-@for r in $(modules) "" ; do \
16
+	-@for r in $(subdirs) "" ; do \
17 17
 		if [ -n "$$r" ]; then \
18 18
 			echo "" ; \
19
-			echo "" ; \
19
+			echo "making $$r" ; \
20 20
 			$(MAKE) -C $$r clean ; \
21 21
 		fi ; \
22 22
 	done
23 23
 
24 24
 .PHONY: modules
25 25
 modules:
26
-	-@for r in $(modules) "" ; do \
26
+	-@for r in $(subdirs) "" ; do \
27 27
 		if [ -n "$$r" ]; then \
28 28
 			echo  "" ; \
29
-			echo  "" ; \
29
+			echo  "making $$r" ; \
30 30
 			$(MAKE) -C $$r all; \
31 31
 		fi ; \
32 32
 	done 
33 33
 
34 34
 .PHONY: install
35 35
 install:
36
-	-@for r in $(modules) "" ; do \
36
+	-@for r in $(subdirs) "" ; do \
37 37
 		if [ -n "$$r" ]; then \
38 38
 			echo "" ; \
39 39
 			echo "" ; \
Browse code

- new target arch/os detection based on gcc (formerly based on host, now target system)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1736 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 31/03/2010 12:24:52
Showing 1 changed files
... ...
@@ -5,15 +5,11 @@ NAME=sems
5 5
 .PHONY: all
6 6
 all: modules
7 7
 
8
+COREPATH=core
8 9
 include Makefile.defs
9 10
 
10 11
 modules = core apps
11 12
 
12
-# or, if you want to build all that is there:
13
-# modules = $(filter-out $(wildcard Makefile* README doc *gz), \
14
-#			$(wildcard *) ) 
15
-# imodules = $(filter-out ser-0.9.6-sems, $(modules))
16
-
17 13
 .PHONY: clean
18 14
 clean:
19 15
 	-@rm -f *.so
Browse code

- removed integrated support for ser-0.9.6 package (obsolete).

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1708 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 25/03/2010 14:49:14
Showing 1 changed files
... ...
@@ -7,8 +7,7 @@ all: modules
7 7
 
8 8
 include Makefile.defs
9 9
 
10
-modules = core apps $(wildcard ser-0.9.6-sems*)  
11
-imodules = core apps
10
+modules = core apps
12 11
 
13 12
 # or, if you want to build all that is there:
14 13
 # modules = $(filter-out $(wildcard Makefile* README doc *gz), \
... ...
@@ -38,37 +37,18 @@ modules:
38 37
 
39 38
 .PHONY: install
40 39
 install:
41
-	-@for r in $(imodules) "" ; do \
40
+	-@for r in $(modules) "" ; do \
42 41
 		if [ -n "$$r" ]; then \
43 42
 			echo "" ; \
44 43
 			echo "" ; \
45 44
 			$(MAKE) -C $$r install; \
46 45
 		fi ; \
47 46
 	done
48
-	-@if [ -d ser-0.9.6-sems ]; then \
49
-			echo "" ;\
50
-			echo "making install in ser-0.9.6" ;\
51
-			echo "using PREFIX=$(SERPREFIX)" ;\
52
-			echo "" ;\
53
-			$(MAKE) -C ser-0.9.6-sems install PREFIX=$(SERPREFIX) ;\
54
-			echo "" ;\
55
-			echo "installing ser-sems.cfg" ;\
56
-			$(MAKE) -C . install-ser-cfg ;\
57
-	fi
58 47
 	@echo ""
59 48
 	@echo "*** install complete. Run SEMS with "
60 49
 	@echo "*** "
61 50
 	@echo "***   $(bin-target)sems -f $(cfg-target)sems.conf"
62 51
 
63
-	-@if [ -d ser-0.9.6-sems ]; then \
64
-		echo "*** "; \
65
-		echo "*** and"; \
66
-		echo "***"; \
67
-		echo "***   $(ser-prefix)/sbin/ser -f $(ser-cfg-target)ser-sems.cfg" ;\
68
-		echo "***"; \
69
-	fi
70
-
71
-
72 52
 
73 53
 .PHONY: dist
74 54
 dist: tar
... ...
@@ -99,16 +79,6 @@ tar:
99 79
 			                               "$(NAME)-$(REL_VERSION)" ) ; \
100 80
 			    rm -rf tmp
101 81
 
102
-ser-0.9.6-sems_src.tar.gz:
103
-	wget http://ftp.iptel.org/pub/sems/ser-0.9.6-sems_src.tar.gz
104
-
105
-ser-0.9.6-sems:	ser-0.9.6-sems_src.tar.gz
106
-	tar xzvf ser-0.9.6-sems_src.tar.gz
107
-
108
-.PHONY: bundle
109
-bundle: ser-0.9.6-sems tar
110
-	mv "$(NAME)-$(RELEASE)".tar.gz "$(NAME)-$(RELEASE)"-bundle.tar.gz
111
-
112 82
 .PHONY: doc
113 83
 doc:
114 84
 	make -C core/ doc
... ...
@@ -116,7 +86,3 @@ doc:
116 86
 .PHONY: fulldoc
117 87
 fulldoc:
118 88
 	make -C core/ fulldoc
119
-
120
-.PHONY: install-ser-cfg
121
-install-ser-cfg:
122
-	make -C core/ install-ser-cfg
Browse code

- Makefiles fix o DESTDIR is only used as installation target directory. Allows staging compile. o xxx-target used in sub-makefiles o CXX/CC taken from env variables

- some minor compililation fixes



git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@882 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 13/04/2008 11:51:02
Showing 1 changed files
... ...
@@ -93,10 +93,10 @@ tar:
93 93
 			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
94 94
 			    cd tmp/_tar1; $(TAR) -xf - ) && \
95 95
 			    mv tmp/_tar1/$(notdir $(CURDIR)) \
96
-			       tmp/_tar2/"$(NAME)-$(RELEASE)" && \
96
+			       tmp/_tar2/"$(NAME)-$(REL_VERSION)" && \
97 97
 			    (cd tmp/_tar2 && $(TAR) \
98 98
 			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
99
-			                               "$(NAME)-$(RELEASE)" ) ; \
99
+			                               "$(NAME)-$(REL_VERSION)" ) ; \
100 100
 			    rm -rf tmp
101 101
 
102 102
 ser-0.9.6-sems_src.tar.gz:
Browse code

make only in core and apps, and, if present, ser dir

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@541 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 31/10/2007 17:20:03
Showing 1 changed files
... ...
@@ -7,10 +7,13 @@ all: modules
7 7
 
8 8
 include Makefile.defs
9 9
 
10
-modules = $(filter-out $(wildcard Makefile* README doc *gz), \
11
-			$(wildcard *) )
12
-imodules = $(filter-out ser-0.9.6-sems, $(modules))
10
+modules = core apps $(wildcard ser-0.9.6-sems*)  
11
+imodules = core apps
13 12
 
13
+# or, if you want to build all that is there:
14
+# modules = $(filter-out $(wildcard Makefile* README doc *gz), \
15
+#			$(wildcard *) ) 
16
+# imodules = $(filter-out ser-0.9.6-sems, $(modules))
14 17
 
15 18
 .PHONY: clean
16 19
 clean:
Browse code

moved all target above include for old make versions that dont support DEFAULT_GOAL

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@537 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 22/10/2007 22:46:57
Showing 1 changed files
... ...
@@ -1,13 +1,16 @@
1 1
 NAME=sems
2
+
2 3
 .DEFAULT_GOAL:=all
4
+
5
+.PHONY: all
6
+all: modules
7
+
3 8
 include Makefile.defs
4 9
 
5 10
 modules = $(filter-out $(wildcard Makefile* README doc *gz), \
6 11
 			$(wildcard *) )
7 12
 imodules = $(filter-out ser-0.9.6-sems, $(modules))
8 13
 
9
-.PHONY: all
10
-all: modules
11 14
 
12 15
 .PHONY: clean
13 16
 clean:
Browse code

updating tar name

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@466 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 28/09/2007 17:27:10
Showing 1 changed files
... ...
@@ -101,6 +101,7 @@ ser-0.9.6-sems:	ser-0.9.6-sems_src.tar.gz
101 101
 
102 102
 .PHONY: bundle
103 103
 bundle: ser-0.9.6-sems tar
104
+	mv "$(NAME)-$(RELEASE)".tar.gz "$(NAME)-$(RELEASE)"-bundle.tar.gz
104 105
 
105 106
 .PHONY: doc
106 107
 doc:
Browse code

train ride doxygen documentation

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@457 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 24/09/2007 17:37:04
Showing 1 changed files
... ...
@@ -106,6 +106,10 @@ bundle: ser-0.9.6-sems tar
106 106
 doc:
107 107
 	make -C core/ doc
108 108
 
109
+.PHONY: fulldoc
110
+fulldoc:
111
+	make -C core/ fulldoc
112
+
109 113
 .PHONY: install-ser-cfg
110 114
 install-ser-cfg:
111 115
 	make -C core/ install-ser-cfg
Browse code

bundle (sith ser-0.9.6-sems) and bundle install

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@437 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 30/08/2007 01:08:04
Showing 1 changed files
... ...
@@ -2,8 +2,9 @@ NAME=sems
2 2
 .DEFAULT_GOAL:=all
3 3
 include Makefile.defs
4 4
 
5
-modules = $(filter-out $(wildcard Makefile* README doc), \
5
+modules = $(filter-out $(wildcard Makefile* README doc *gz), \
6 6
 			$(wildcard *) )
7
+imodules = $(filter-out ser-0.9.6-sems, $(modules))
7 8
 
8 9
 .PHONY: all
9 10
 all: modules
... ...
@@ -31,13 +32,37 @@ modules:
31 32
 
32 33
 .PHONY: install
33 34
 install:
34
-	-@for r in $(modules) "" ; do \
35
+	-@for r in $(imodules) "" ; do \
35 36
 		if [ -n "$$r" ]; then \
36 37
 			echo "" ; \
37 38
 			echo "" ; \
38 39
 			$(MAKE) -C $$r install; \
39 40
 		fi ; \
40 41
 	done
42
+	-@if [ -d ser-0.9.6-sems ]; then \
43
+			echo "" ;\
44
+			echo "making install in ser-0.9.6" ;\
45
+			echo "using PREFIX=$(SERPREFIX)" ;\
46
+			echo "" ;\
47
+			$(MAKE) -C ser-0.9.6-sems install PREFIX=$(SERPREFIX) ;\
48
+			echo "" ;\
49
+			echo "installing ser-sems.cfg" ;\
50
+			$(MAKE) -C . install-ser-cfg ;\
51
+	fi
52
+	@echo ""
53
+	@echo "*** install complete. Run SEMS with "
54
+	@echo "*** "
55
+	@echo "***   $(bin-target)sems -f $(cfg-target)sems.conf"
56
+
57
+	-@if [ -d ser-0.9.6-sems ]; then \
58
+		echo "*** "; \
59
+		echo "*** and"; \
60
+		echo "***"; \
61
+		echo "***   $(ser-prefix)/sbin/ser -f $(ser-cfg-target)ser-sems.cfg" ;\
62
+		echo "***"; \
63
+	fi
64
+
65
+
41 66
 
42 67
 .PHONY: dist
43 68
 dist: tar
... ...
@@ -68,6 +93,15 @@ tar:
68 93
 			                               "$(NAME)-$(RELEASE)" ) ; \
69 94
 			    rm -rf tmp
70 95
 
96
+ser-0.9.6-sems_src.tar.gz:
97
+	wget http://ftp.iptel.org/pub/sems/ser-0.9.6-sems_src.tar.gz
98
+
99
+ser-0.9.6-sems:	ser-0.9.6-sems_src.tar.gz
100
+	tar xzvf ser-0.9.6-sems_src.tar.gz
101
+
102
+.PHONY: bundle
103
+bundle: ser-0.9.6-sems tar
104
+
71 105
 .PHONY: doc
72 106
 doc:
73 107
 	make -C core/ doc
... ...
@@ -75,5 +109,3 @@ doc:
75 109
 .PHONY: install-ser-cfg
76 110
 install-ser-cfg:
77 111
 	make -C core/ install-ser-cfg
78
-
79
-
Browse code

added make ser-cfg-install target to install default ser-sems.cfg

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@280 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 26/03/2007 15:55:07
Showing 1 changed files
... ...
@@ -70,4 +70,10 @@ tar:
70 70
 
71 71
 .PHONY: doc
72 72
 doc:
73
-	make -C core/ doc
74 73
\ No newline at end of file
74
+	make -C core/ doc
75
+
76
+.PHONY: install-ser-cfg
77
+install-ser-cfg:
78
+	make -C core/ install-ser-cfg
79
+
80
+
Browse code

added default_goal (thanks again Alfred for reporting)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@200 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 18/01/2007 21:50:04
Showing 1 changed files
... ...
@@ -1,4 +1,5 @@
1 1
 NAME=sems
2
+.DEFAULT_GOAL:=all
2 3
 include Makefile.defs
3 4
 
4 5
 modules = $(filter-out $(wildcard Makefile* README doc), \
Browse code

doxygenized doc and included all Readme files

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@192 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 14/01/2007 19:05:46
Showing 1 changed files
... ...
@@ -67,3 +67,6 @@ tar:
67 67
 			                               "$(NAME)-$(RELEASE)" ) ; \
68 68
 			    rm -rf tmp
69 69
 
70
+.PHONY: doc
71
+doc:
72
+	make -C core/ doc
70 73
\ No newline at end of file
Browse code

tmp dir deleted after use

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@180 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 15/12/2006 15:27:04
Showing 1 changed files
... ...
@@ -65,4 +65,5 @@ tar:
65 65
 			    (cd tmp/_tar2 && $(TAR) \
66 66
 			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
67 67
 			                               "$(NAME)-$(RELEASE)" ) ; \
68
-			    rm -rf tmp/_tar1; rm -rf tmp/_tar2
68
+			    rm -rf tmp
69
+
Browse code

* 'tar' and 'dist' target in main dir * Makefile.defs moved to main dir * small bug in ivr Makefile fixed

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@179 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 15/12/2006 15:25:37
Showing 1 changed files
... ...
@@ -1,3 +1,5 @@
1
+NAME=sems
2
+include Makefile.defs
1 3
 
2 4
 modules = $(filter-out $(wildcard Makefile* README doc), \
3 5
 			$(wildcard *) )
... ...
@@ -35,3 +37,32 @@ install:
35 37
 			$(MAKE) -C $$r install; \
36 38
 		fi ; \
37 39
 	done
40
+
41
+.PHONY: dist
42
+dist: tar
43
+
44
+.PHONY: tar
45
+tar: 
46
+	$(TAR) -C .. \
47
+		--exclude=$(notdir $(CURDIR))/tmp \
48
+		--exclude=core/$(notdir $(CURDIR))/tmp \
49
+		--exclude=.svn* \
50
+		--exclude=.\#* \
51
+		--exclude=*.[do] \
52
+		--exclude=*.la \
53
+		--exclude=*.lo \
54
+		--exclude=*.so \
55
+		--exclude=*.il \
56
+		--exclude=*.gz \
57
+		--exclude=*.bz2 \
58
+		--exclude=*.tar \
59
+		--exclude=*~ \
60
+		-cf - $(notdir $(CURDIR)) | \
61
+			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
62
+			    cd tmp/_tar1; $(TAR) -xf - ) && \
63
+			    mv tmp/_tar1/$(notdir $(CURDIR)) \
64
+			       tmp/_tar2/"$(NAME)-$(RELEASE)" && \
65
+			    (cd tmp/_tar2 && $(TAR) \
66
+			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
67
+			                               "$(NAME)-$(RELEASE)" ) ; \
68
+			    rm -rf tmp/_tar1; rm -rf tmp/_tar2
Browse code

excluded README and doc (thx Alexandr)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@107 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 14/10/2006 01:05:36
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2
-modules = $(filter-out $(wildcard Makefile*), \
2
+modules = $(filter-out $(wildcard Makefile* README doc), \
3 3
 			$(wildcard *) )
4
-			
4
+
5 5
 .PHONY: all
6 6
 all: modules
7 7
 
Browse code

initial checkin new open source version.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@5 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 17/03/2006 13:16:06
Showing 1 changed files
... ...
@@ -1,161 +1,37 @@
1
-NAME=sems
2
-LIBNAME=sems.so
3
-
4
-# version number
5
-VERSION = 0
6
-PATCHLEVEL = 9
7
-SUBLEVEL =   9
8
-EXTRAVERSION = _unstable
9
-
10
-RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
11
-
12
-PLUGIN_DIR=plug-in
13
-SRCS=$(filter-out $(NAME).cpp traceloader.cpp, $(wildcard *.cpp))
14
-HDRS=$(SRCS:.cpp=.h)
15
-OBJS=$(SRCS:.cpp=.o)
16
-DEPS=$(SRCS:.cpp=.d) $(NAME).d traceloader.d
17
-AUDIO_FILES=$(notdir $(wildcard wav/*.wav))
18
-
19
-include Makefile.defs
20 1
 
2
+modules = $(filter-out $(wildcard Makefile*), \
3
+			$(wildcard *) )
4
+			
21 5
 .PHONY: all
22
-all:
23
-	-@$(MAKE) deps    && \
24
-	  $(MAKE) $(NAME) && \
25
-	  $(MAKE) traceloader && \
26
-	  $(MAKE) modules
27
-
6
+all: modules
28 7
 
29 8
 .PHONY: clean
30 9
 clean:
31
-	rm -f $(OBJS) $(DEPS) $(NAME)
32
-	rm -f lib/apps/*.so lib/audio/*.so
33
-	$(MAKE) -C $(PLUGIN_DIR) clean
10
+	-@rm -f *.so
11
+	-@for r in $(modules) "" ; do \
12
+		if [ -n "$$r" ]; then \
13
+			echo "" ; \
14
+			echo "" ; \
15
+			$(MAKE) -C $$r clean ; \
16
+		fi ; \
17
+	done
34 18
 
35 19
 .PHONY: modules
36 20
 modules:
37
-	$(MAKE) -C $(PLUGIN_DIR) $(MAKECMDGOALS)
38
-
39
-.PHONY: deps
40
-deps: $(DEPS)
41
-
42
-.PHONY: doc
43
-doc:
44
-	rm -Rf doxygen_output; rm -rf docs/doxygen_output ; \
45
-	doxygen doxygen_proj ; mv doxygen_output docs
46
-
47
-# implicit rules
48
-%.o : %.cpp %.d
49
-	g++ -c -o $@ $< $(CPP_FLAGS)
50
-
51
-%.d : %.cpp %.h Makefile
52
-	g++ -MM $< $(CPP_FLAGS) > $@
53
-
54
-md5.o: md5.c md5.d
55
-	$(CC) $(cflags) -c $< -o $@
56
-
57
-md5.d: md5.c md5.h Makefile
58
-	$(CC) -MM $< $(cflags) > $@
59
-
60
-# explicit rules
61
-#$(LIBNAME): $(OBJS)
62
-#	g++ -o $(LIBNAME) $(OBJS) $(LIB_LD_FLAGS)
63
-
64
-$(NAME): $(NAME).o $(OBJS) md5.o
65
-	g++ -o $(NAME) $(NAME).o $(OBJS) md5.o $(LD_FLAGS)
66
-
67
-traceloader: traceloader.o  $(OBJS)
68
-	g++ -o $@ traceloader.o $(OBJS) md5.o $(LD_FLAGS)
69
-
70
-install: all mk-install-dirs install-cfg install-bin install-modules \
71
-	install-audio install-doc
72
-
73
-mk-install-dirs: $(cfg-prefix)/$(cfg-dir) $(bin-prefix)/$(bin-dir) \
74
-			$(modules-prefix)/$(modules-dir)audio \
75
-			$(modules-prefix)/$(modules-dir)apps \
76
-			$(audio-prefix)/$(audio-dir) \
77
-			$(doc-prefix)/$(doc-dir)
78
-
79
-$(cfg-prefix)/$(cfg-dir): 
80
-		mkdir -p $(cfg-prefix)/$(cfg-dir)
81
-
82
-$(bin-prefix)/$(bin-dir):
83
-		mkdir -p $(bin-prefix)/$(bin-dir)
84
-
85
-$(modules-prefix)/$(modules-dir)audio:
86
-		mkdir -p $(modules-prefix)/$(modules-dir)audio
87
-
88
-$(modules-prefix)/$(modules-dir)apps:
89
-		mkdir -p $(modules-prefix)/$(modules-dir)apps
90
-
91
-$(audio-prefix)/$(audio-dir):
92
-		mkdir -p $(audio-prefix)/$(audio-dir)
93
-
94
-$(doc-prefix)/$(doc-dir):
95
-		mkdir -p $(doc-prefix)/$(doc-dir)
96
-
97
-# note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
98
-install-cfg: $(cfg-prefix)/$(cfg-dir)
99
-		sed -e "s#/usr/.*lib/sems/audio/#$(audio-target)#g" \
100
-			-e "s#/usr/.*lib/sems/plug-in/#$(modules-target)#g" \
101
-			-e "s#/usr/.*etc/sems#$(cfg-target)#g" \
102
-			< sems.conf.sample > $(cfg-prefix)/$(cfg-dir)sems.conf.default
103
-		chmod 644 $(cfg-prefix)/$(cfg-dir)sems.conf.default
104
-		if [ ! -f $(cfg-prefix)/$(cfg-dir)sems.conf ]; then \
105
-			mv -f $(cfg-prefix)/$(cfg-dir)sems.conf.default \
106
-				$(cfg-prefix)/$(cfg-dir)sems.conf; \
107
-		fi
108
-
109
-install-bin: $(bin-prefix)/$(bin-dir)
110
-		$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)$(NAME)
111
-		$(INSTALL-BIN) $(NAME) $(bin-prefix)/$(bin-dir)
112
-
113
-install-modules: $(PLUGIN_DIR) $(modules-prefix)/$(modules-dir)audio \
114
-		 $(modules-prefix)/$(modules-dir)apps
115
-	$(MAKE) -C $(PLUGIN_DIR) install
116
-
117
-install-audio: $(audio-prefix)/$(audio-dir)
118
-	-@for f in $(AUDIO_FILES) ; do \
119
-		if [ -n "wav/$$f" ]; then \
120
-			$(INSTALL-TOUCH) $(audio-prefix)/$(audio-dir)$$f; \
121
-			$(INSTALL-AUDIO) wav/$$f $(audio-prefix)/$(audio-dir)$$f; \
21
+	-@for r in $(modules) "" ; do \
22
+		if [ -n "$$r" ]; then \
23
+			echo  "" ; \
24
+			echo  "" ; \
25
+			$(MAKE) -C $$r all; \
26
+		fi ; \
27
+	done 
28
+
29
+.PHONY: install
30
+install:
31
+	-@for r in $(modules) "" ; do \
32
+		if [ -n "$$r" ]; then \
33
+			echo "" ; \
34
+			echo "" ; \
35
+			$(MAKE) -C $$r install; \
122 36
 		fi ; \
123 37
 	done
124
-
125
-install-doc: $(doc-prefix)/$(doc-dir)
126
-	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)README
127
-	$(INSTALL-DOC) README $(doc-prefix)/$(doc-dir)
128
-
129
-dist: tar
130
-
131
-tar: 
132
-	$(TAR) -C .. \
133
-		--exclude=$(notdir $(CURDIR))/ivr \
134
-		--exclude=$(notdir $(CURDIR))/tmp \
135
-		--exclude=CVS* \
136
-		--exclude=.\#* \
137
-		--exclude=*.[do] \
138
-		--exclude=*.la \
139
-		--exclude=*.lo \
140
-		--exclude=*.so \
141
-		--exclude=*.il \
142
-		--exclude=$(notdir $(CURDIR))/sems \
143
-		--exclude=*.gz \
144
-		--exclude=*.bz2 \
145
-		--exclude=*.tar \
146
-		-cf - $(notdir $(CURDIR)) | \
147
-			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
148
-			    cd tmp/_tar1; $(TAR) -xf - ) && \
149
-			    mv tmp/_tar1/$(notdir $(CURDIR)) \
150
-			       tmp/_tar2/"$(NAME)-$(RELEASE)" && \
151
-			    (cd tmp/_tar2 && $(TAR) \
152
-			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
153
-			                               "$(NAME)-$(RELEASE)" ) ; \
154
-			    rm -rf tmp/_tar1; rm -rf tmp/_tar2
155
-
156
-
157
-ifeq '$(NAME)' '$(MAKECMDGOALS)'
158
-include $(DEPS)
159
-endif
160
-
161
-
Browse code

initial import

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 27/09/2005 07:54:58
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,161 @@
1
+NAME=sems
2
+LIBNAME=sems.so
3
+
4
+# version number
5
+VERSION = 0
6
+PATCHLEVEL = 9
7
+SUBLEVEL =   9
8
+EXTRAVERSION = _unstable
9
+
10
+RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
11
+
12
+PLUGIN_DIR=plug-in
13
+SRCS=$(filter-out $(NAME).cpp traceloader.cpp, $(wildcard *.cpp))
14
+HDRS=$(SRCS:.cpp=.h)
15
+OBJS=$(SRCS:.cpp=.o)
16
+DEPS=$(SRCS:.cpp=.d) $(NAME).d traceloader.d
17
+AUDIO_FILES=$(notdir $(wildcard wav/*.wav))
18
+
19
+include Makefile.defs
20
+
21
+.PHONY: all
22
+all:
23
+	-@$(MAKE) deps    && \
24
+	  $(MAKE) $(NAME) && \
25
+	  $(MAKE) traceloader && \
26
+	  $(MAKE) modules
27
+
28
+
29
+.PHONY: clean
30
+clean:
31
+	rm -f $(OBJS) $(DEPS) $(NAME)
32
+	rm -f lib/apps/*.so lib/audio/*.so
33
+	$(MAKE) -C $(PLUGIN_DIR) clean
34
+
35
+.PHONY: modules
36
+modules:
37
+	$(MAKE) -C $(PLUGIN_DIR) $(MAKECMDGOALS)
38
+
39
+.PHONY: deps
40
+deps: $(DEPS)
41
+
42
+.PHONY: doc
43
+doc:
44
+	rm -Rf doxygen_output; rm -rf docs/doxygen_output ; \
45
+	doxygen doxygen_proj ; mv doxygen_output docs
46
+
47
+# implicit rules
48
+%.o : %.cpp %.d
49
+	g++ -c -o $@ $< $(CPP_FLAGS)
50
+
51
+%.d : %.cpp %.h Makefile
52
+	g++ -MM $< $(CPP_FLAGS) > $@
53
+
54
+md5.o: md5.c md5.d
55
+	$(CC) $(cflags) -c $< -o $@
56
+
57
+md5.d: md5.c md5.h Makefile
58
+	$(CC) -MM $< $(cflags) > $@
59
+
60
+# explicit rules
61
+#$(LIBNAME): $(OBJS)
62
+#	g++ -o $(LIBNAME) $(OBJS) $(LIB_LD_FLAGS)
63
+
64
+$(NAME): $(NAME).o $(OBJS) md5.o
65
+	g++ -o $(NAME) $(NAME).o $(OBJS) md5.o $(LD_FLAGS)
66
+
67
+traceloader: traceloader.o  $(OBJS)
68
+	g++ -o $@ traceloader.o $(OBJS) md5.o $(LD_FLAGS)
69
+
70
+install: all mk-install-dirs install-cfg install-bin install-modules \
71
+	install-audio install-doc
72
+
73
+mk-install-dirs: $(cfg-prefix)/$(cfg-dir) $(bin-prefix)/$(bin-dir) \
74
+			$(modules-prefix)/$(modules-dir)audio \
75
+			$(modules-prefix)/$(modules-dir)apps \
76
+			$(audio-prefix)/$(audio-dir) \
77
+			$(doc-prefix)/$(doc-dir)
78
+
79
+$(cfg-prefix)/$(cfg-dir): 
80
+		mkdir -p $(cfg-prefix)/$(cfg-dir)
81
+
82
+$(bin-prefix)/$(bin-dir):
83
+		mkdir -p $(bin-prefix)/$(bin-dir)
84
+
85
+$(modules-prefix)/$(modules-dir)audio:
86
+		mkdir -p $(modules-prefix)/$(modules-dir)audio
87
+
88
+$(modules-prefix)/$(modules-dir)apps:
89
+		mkdir -p $(modules-prefix)/$(modules-dir)apps
90
+
91
+$(audio-prefix)/$(audio-dir):
92
+		mkdir -p $(audio-prefix)/$(audio-dir)
93
+
94
+$(doc-prefix)/$(doc-dir):
95
+		mkdir -p $(doc-prefix)/$(doc-dir)
96
+
97
+# note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
98
+install-cfg: $(cfg-prefix)/$(cfg-dir)
99
+		sed -e "s#/usr/.*lib/sems/audio/#$(audio-target)#g" \
100
+			-e "s#/usr/.*lib/sems/plug-in/#$(modules-target)#g" \
101
+			-e "s#/usr/.*etc/sems#$(cfg-target)#g" \
102
+			< sems.conf.sample > $(cfg-prefix)/$(cfg-dir)sems.conf.default
103
+		chmod 644 $(cfg-prefix)/$(cfg-dir)sems.conf.default
104
+		if [ ! -f $(cfg-prefix)/$(cfg-dir)sems.conf ]; then \
105
+			mv -f $(cfg-prefix)/$(cfg-dir)sems.conf.default \
106
+				$(cfg-prefix)/$(cfg-dir)sems.conf; \
107
+		fi
108
+
109
+install-bin: $(bin-prefix)/$(bin-dir)
110
+		$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)$(NAME)
111
+		$(INSTALL-BIN) $(NAME) $(bin-prefix)/$(bin-dir)
112
+
113
+install-modules: $(PLUGIN_DIR) $(modules-prefix)/$(modules-dir)audio \
114
+		 $(modules-prefix)/$(modules-dir)apps
115
+	$(MAKE) -C $(PLUGIN_DIR) install
116
+
117
+install-audio: $(audio-prefix)/$(audio-dir)
118
+	-@for f in $(AUDIO_FILES) ; do \
119
+		if [ -n "wav/$$f" ]; then \
120
+			$(INSTALL-TOUCH) $(audio-prefix)/$(audio-dir)$$f; \
121
+			$(INSTALL-AUDIO) wav/$$f $(audio-prefix)/$(audio-dir)$$f; \
122
+		fi ; \
123
+	done
124
+
125
+install-doc: $(doc-prefix)/$(doc-dir)
126
+	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)README
127
+	$(INSTALL-DOC) README $(doc-prefix)/$(doc-dir)
128
+
129
+dist: tar
130
+
131
+tar: 
132
+	$(TAR) -C .. \
133
+		--exclude=$(notdir $(CURDIR))/ivr \
134
+		--exclude=$(notdir $(CURDIR))/tmp \
135
+		--exclude=CVS* \
136
+		--exclude=.\#* \
137
+		--exclude=*.[do] \
138
+		--exclude=*.la \
139
+		--exclude=*.lo \
140
+		--exclude=*.so \
141
+		--exclude=*.il \
142
+		--exclude=$(notdir $(CURDIR))/sems \
143
+		--exclude=*.gz \
144
+		--exclude=*.bz2 \
145
+		--exclude=*.tar \
146
+		-cf - $(notdir $(CURDIR)) | \
147
+			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
148
+			    cd tmp/_tar1; $(TAR) -xf - ) && \
149
+			    mv tmp/_tar1/$(notdir $(CURDIR)) \
150
+			       tmp/_tar2/"$(NAME)-$(RELEASE)" && \
151
+			    (cd tmp/_tar2 && $(TAR) \
152
+			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
153
+			                               "$(NAME)-$(RELEASE)" ) ; \
154
+			    rm -rf tmp/_tar1; rm -rf tmp/_tar2
155
+
156
+
157
+ifeq '$(NAME)' '$(MAKECMDGOALS)'
158
+include $(DEPS)
159
+endif
160
+
161
+