File: Makefile.am

package info (click to toggle)
bar 1.11.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 928 kB
  • sloc: ansic: 4,381; sh: 3,334; makefile: 264
file content (229 lines) | stat: -rw-r--r-- 5,391 bytes parent folder | download
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
#
# To override any of the following variables, you can set the veriable in your
# environment before calling make.  Be sure that make will honor environmental
# overrides, usually by passing the -e flag to make or by setting MAKEFLAGS in
# your environment.
#
# Ex:
#
# 	$ ./configure
# 	$ CFLAGS="-g -Wall" make -e
# 	$ make install
#

# CFLAGS =
# CFLAGS = -O2
# CFLAGS = -g -Wall

# LDFLAGS = -s
# LDFLAGS =

bin_PROGRAMS =
noinst_PROGRAMS =
noinst_HEADERS =
TESTS =
nodist_TESTS = 
BUILT_SOURCES =
CLEANFILES = *~
DISTCLEANFILES = ./deps/*.P
EXTRA_DIST =
man_MANS =

noinst_HEADERS += headers.h

noinst_PROGRAMS += test-types
test_types_SOURCES = \
	test-types.c \
	#
TESTS += test-types

# noinst_PROGRAMS += test-args
# test_args_SOURCES = \
# 	error.c \
# 	fd.c \
# 	io.c \
# 	display.c \
# 	args.c \
# 	test-args.c \
# 	#
# TESTS += test-args

noinst_PROGRAMS += test-001-pre
test_001_pre_SOURCES = \
	test-001-pre.c \
	#

noinst_PROGRAMS += test-001-post
test_001_post_SOURCES = \
	test-001-post.c \
	#

TESTS += test-001
EXTRA_DIST += test-001

TESTS += test-002
EXTRA_DIST += test-002
CLEANFILES += test-file-002.1.bin test-file-002.2.bin

# TESTS += test-003
EXTRA_DIST += test-003
CLEANFILES += test-file-003.incomplete.bin
CLEANFILES += test-file-003.1.bin
CLEANFILES += test-file-003.2.bin
CLEANFILES += test-pipe-003.1
CLEANFILES += test-pipe-003.2
CLEANFILES += test-pipe-003.3

# TESTS += test-004
EXTRA_DIST += test-004
CLEANFILES += test-file-004.incomplete.bin
CLEANFILES += test-file-004.bin
CLEANFILES += test-file-004.1.bin
CLEANFILES += test-file-004.2.bin

EXTRA_DIST += itest
EXTRA_DIST += itest2

DISTCLEANFILES += ./log.test-*

bin_PROGRAMS += bar
noinst_HEADERS += types.h
noinst_HEADERS += error.h
noinst_HEADERS += fd.h
noinst_HEADERS += io.h
noinst_HEADERS += display.h
noinst_HEADERS += args.h
bar_SOURCES = \
	error.c \
	fd.c \
	io.c \
	display.c \
	args.c \
	bar.c \
	#

man_MANS += bar.1
EXTRA_DIST += $(man_MANS)

# EXTRA_DIST += PORTING

EXTRA_DIST += autogen

EXTRA_DIST += debian/changelog
EXTRA_DIST += debian/control
EXTRA_DIST += debian/copyright
EXTRA_DIST += debian/dirs
EXTRA_DIST += debian/install
EXTRA_DIST += debian/rules
EXTRA_DIST += sourceforge.mk

EXTRA_DIST += TROUBLESHOOTING
EXTRA_DIST += troubleshooter

EXTRA_DIST += infofile

include sourceforge.mk

dch:
	cd ./debian && dch --check-dirname-level 0

dchi:
	cd ./debian && dch -i --check-dirname-level 0

#
#------------------------------------------------------------------------------
#

FILE_DIR = ../dist
WEB_DIR = ../www
ARCH = $(shell uname -m)

update: update-dist update-www

update-dist: dist
	[ -d $(FILE_DIR) ] || exit 1
	[ -f $(distdir).tar.gz ] || exit 1
	chmod 0755 $(FILE_DIR)
	-rm -fr $(FILE_DIR)/$(PACKAGE)*
	-rm -fr $(FILE_DIR)/$(distdir)
	gzip -dc $(distdir).tar.gz | (cd $(FILE_DIR) && tar -xvf -)
	[ -x /usr/bin/dpkg-buildpackage ] || exit 1
	[ -x /usr/bin/fakeroot ] || exit 1
	cd $(FILE_DIR)/$(distdir) && dpkg-buildpackage -us -uc -rfakeroot
	rm -fr $(FILE_DIR)/$(distdir)

	[ -x /usr/bin/alien ] || exit 1
	cd $(FILE_DIR) && fakeroot alien --to-rpm $(PACKAGE)_$(VERSION)_*.deb
	[ -x /usr/bin/alien ] || exit 1
	cd $(FILE_DIR) && fakeroot alien --to-tgz $(PACKAGE)_$(VERSION)_*.deb
	cd $(FILE_DIR) && mv $(PACKAGE)-$(VERSION).tgz $(PACKAGE)-$(VERSION)_$(ARCH).tgz

	-rm ./ChangeLog
	cp debian/changelog $(FILE_DIR)/$(PACKAGE)-$(VERSION)-ChangeLog
	[ ! -f README ] || cp README $(FILE_DIR)/$(PACKAGE)-$(VERSION)-README
	[ -x /usr/bin/groff ] || exit 1
	for file in $(man_MANS); do \
		cat $${file} \
			| groff -man -Tascii \
			| sed \
				-e 's,_,,g' \
				-e 's,.,,g' \
			> $(FILE_DIR)/$(PACKAGE)-$(VERSION)-man.txt \
			; \
	done

update-www:
	[ -d $(WEB_DIR) ] || exit 1
	-rm -fr $(WEB_DIR)/doxygen/$(VERSION)
	cat doxygen.conf.in \
	| sed "s,{PACKAGE},$(PACKAGE),g" \
	| sed "s,{VERSION},$(VERSION),g" \
	| sed "s,{DOC_DIR},$(WEB_DIR)/doxygen/$(VERSION),g" \
	> doxygen.conf
	doxygen ./doxygen.conf
	cd $(WEB_DIR) && $(MAKE)

###############################################################################
#
# Automated Sourceforge Compilefarm Testing
#
###############################################################################

# include sourceforge.mk

# $(PACKAGE)-$(VERSION).tar.gz: $(DIST_COMMON) $(SOURCES)
# 	$(MAKE) dist
# 
# update-sourceforge-compilefarm: .update-sourceforge-compilefarm
# .update-sourceforge-compilefarm: $(PACKAGE)-$(VERSION).tar.gz
# 	tar -cvf - ./$(PACKAGE)-$(VERSION).tar.gz \
# 	| ssh -l michaelpeek shell.cf.sourceforge.net \
# 		"tar -xvf -"
# 	touch $@
# 
# test-sourceforge-compilefarm-generic: .test-sourceforge-compilefarm-$(HOST)
# .test-sourceforge-compilefarm-$(HOST): .update-sourceforge-compilefarm
# 	-ssh -l michaelpeek shell.cf.sourceforge.net \
# 		"test-project \"$(HOST)\" \"$(PACKAGE)\" \"$(VERSION)\"" 2>&1 \
# 		| tee log.sourceforge.$(HOST).txt \
# 		| sed 's,^,[$(HOST)]: ,g'
# 
# test-sourceforge-compilefarm: .update-sourceforge-compilefarm
# 	for host in $(SOURCEFORGE_COMPILE_FARM_HOSTS); do \
# 		$(MAKE) test-sourceforge-compilefarm-generic HOST="$${host}" ; \
# 	done ; \
# 	#
#  
# test-sourceforge: .update-sourceforge-compilefarm
# 	-rm -f log.sourceforge.*
# 	$(MAKE) test-sourceforge-compilefarm 2>&1 | tee log.sourceforge.txt

###############################################################################

beep:
	@printf ''
	@sleep 1
	@printf ''
	@sleep 1
	@printf ''