-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
executable file
·113 lines (98 loc) · 3.18 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# --------------------------------------------------------------
#
# Description : makefile the ickstream player deamon
#
# Comments : -
#
# Date : 13.02.2013
#
# Updates : -
#
# Author : //maf
#
# Remarks : -
#
# Copyright (c) 2013 ickStream GmbH.
# All rights reserved.
# ------------------------------------------------------------------------
@cinfo@
SHELL=/bin/sh
SUBDIRS = @makedirs@
ARCVER = $(shell TZ=UTC date '+%y%m%d%H%M%S')
GITVER = $(shell git rev-list HEAD --max-count=1)
ARCNAME = ickpd
all:
@echo '*************************************************************'
@echo ' Building $(ARCNAME) ...'
@for a in $(SUBDIRS); do \
cd $$a; if ! $(MAKE); then exit 1; fi; \
cd @ickpdroot@; \
done
@echo '*************************************************************'
@echo ' >>>> $(ARCNAME) was build succsessfully <<<<'
@echo '*************************************************************'
new: cleanall all
config: scripts/config.status
scripts/config.status: configure
@./configure
Makefile: Makefile.in scripts/config.status
@echo '*************************************************************'
@scripts/config.status Makefile.in
dist: cleanall
@echo '*************************************************************'
@echo 'Building archive: '
@echo "#define ICKPD_DISTRIB $(ARCVER)"> include/distrib.h
@touch THIS_IS_VERSION_$(ARCVER)
# @chmod -R g+w .
@tar cvzf $(ARCNAME)$(ARCVER).tgz *
@ln -sf $(ARCNAME)$(ARCVER).tgz $(ARCNAME).tgz
@date >./lastdist
incr: cleanall
@echo '*************************************************************'
@echo 'Building incremental update: '
touch configure
tar cvzf $(ARCNAME)-incr-$(ARCVER).tgz `find . -type f -newer ./lastdist -print`
date >./lastdist
cleanall: clean
@echo '*************************************************************'
@echo -n 'Clean all: '
@find . -name "*.a" -exec rm -f '{}' ';'
@find . -name "*.o" -exec rm -f '{}' ';'
@find . -name "*~" -exec rm -f '{}' ';'
@find . -name "core" -exec rm -f '{}' ';'
@find . -name "#*#" -exec rm -f '{}' ';'
@find . -name "config.status" -exec rm -f '{}' ';'
@find . -name ".ickpd_persist" -exec rm -f '{}' ';'
@rm -f *.tgz
@rm -f THIS_IS_VERSION*
@for a in $(SUBDIRS); do \
cd $$a; $(MAKE) cleanall; \
rm -f Makelie; \
cd @ickpdroot@; \
done
@echo done.
clean:
@echo '*************************************************************'
@echo -n 'Cleaning directories: '
@for a in $(SUBDIRS); do \
cd $$a; $(MAKE) clean; \
cd @ickpdroot@; \
done
@find . -name "*.bak" -exec rm '{}' ';'
@echo done.
install: all
@echo '*************************************************************'
@echo "todo..."
@echo " done."
depend:
@echo '*************************************************************'
@echo "Building dependencies:"
@for a in $(SUBDIRS); do \
cd $$a; $(MAKE) depend; \
cd @ickpdroot@; \
done
tags:
@echo '*************************************************************'
@echo -n "Building taglist : "
@etags -d -t `find src -name '*.c' -print` include/*.h
@echo done.