forked from tubav/libipfix
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.in
50 lines (38 loc) · 1.16 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
#$$LIC$$
#
# $Id: Makefile.in,v 1.2 2005/01/04 09:25:12 luz Exp $
#
# Makefile
SHELL = @SHELL@
top_srcdir = @top_srcdir@
prefix = @prefix@
SUBDIRS = lib libmisc examples collector probe
.PHONY: subdirs $(SUBDIRS)
all: subdirs
# build all subdirectories
subdirs: $(SUBDIRS)
# ensure libmisc compiled before lib
lib: libmisc
# ensure lib, libmisc compiled before
examples collector probe: lib libmisc
# rule how to build each subdirectory
$(SUBDIRS):
$(MAKE) -C $@ $(filter-out $(SUBDIRS),$(MAKECMDGOALS))
clean install uninstall: subdirs
distclean: subdirs
rm -rf config.status config.log Makefile
# build binary package
# to build signed package remove -us -uc
binary-pkg: switch-distribution
debuild -i -I -us -uc
# build source package; ready for uploading
# to build signed package remove -us -uc
source-pkg: switch-distribution
debuild -i -I -S -sa -us -uc
# replace distribution of last changlog entry with the given one
# to build a destribution specific (ubuntu) source/binary packaget
switch-distribution:
ifdef DIST
sed -i '1s/\(.*(.*-.*)\).*\(;.*\)/\1 $(DIST)\2/' ./debian/changelog
endif
# -------------------------------------------------------------