-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjfrules.mk
More file actions
109 lines (93 loc) · 3.39 KB
/
jfrules.mk
File metadata and controls
109 lines (93 loc) · 3.39 KB
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
# -*- tab-width:8; indent-tabs-mode:true; -*-
# vim: set sw=2 ts=8 sts=0 noet:
#
# Copyright (c)
# 2001 - 2006 Joachim Falk <joachim.falk@gmx.de>
# 2010 Joachim Falk <joachim.falk@gmx.de>
# 2017 FAU -- Simone Müller <simone.mueller@fau.de>
#
# This file is part of the BuildSystem distribution of Joachim Falk;
# you can redistribute it and/or modify it under the terms of the
# GNU General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version.
#
# The BuildSystem is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
ifdef pkgincludeprefix
pkgincludebacktrack=$(shell echo "$(pkgincludeprefix)" | sed -e 's@[^/][^/]*\(/\|$$\)@../@g')
pkgincludedir=$(includedir)/$(pkgincludeprefix)
include: Makefile $(pkginclude_HEADERS)
@set -e; rm -rf include/$(pkgincludeprefix); mkdir -p include/$(pkgincludeprefix); \
set $^; shift; \
for i in $${1+"$$@"}; do \
ln -sf `case $$i in /*) echo $$i; ;; *) echo '../$(pkgincludebacktrack)/'"$$i"; ;; esac` include/$(pkgincludeprefix); \
done
clean-am: clean-pkginclude
clean-pkginclude:
rm -rf include
endif
clean-am: clean-re2c-scripts
clean-re2c-scripts:
@find $(srcdir) -maxdepth 1 -name "*.re2c*" -o -name "*-sh" | \
while read file; do \
case $$file in \
*.re2c) rm -f `basename $${file%%.re2c}.c` ;; \
*.re2cpp) rm -f `basename $${file%%.re2cpp}.cpp` ;; \
*-sh) rm -f `basename $${file%%-sh}.sh` ;; \
esac; \
done
-include compileheader.mk
compileheader.mk: $(HEADERS)
@if test -n "$?"; then \
$(auxdir)/mkcompileheaderobj.sh $?; \
fi
%.sh: %-sh
{ [ -d $(dir $@) ] || mkdir -p $(dir $@); } && \
cp -f $< $@ && chmod 0755 $@
%: %.m4
{ [ -d $(dir $@) ] || mkdir -p $(dir $@); } && \
m4 --fatal-warnings -P -I $(dir $<) -I $(auxdir)/m4 $(auxdir)/autoconf-env.m4 $< > $@
%.c: %.re2c
{ [ -d $(dir $@) ] || mkdir -p $(dir $@); } && \
re2c -b -o $@ $< || \
{ rm -f $@; false; }
%.cpp: %.re2cpp
{ [ -d $(dir $@) ] || mkdir -p $(dir $@); } && \
re2c -b -o $@ $< || \
{ rm -f $@; false; }
doxygen-doc: doxygen-doc-recursive
doxygen-run: doxygen-run-recursive
doxygen-doc-recursive doxygen-run-recursive:
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
doxygen-doc-am: $(DX_RUN_GOAL) $(DX_PS_GOAL) $(DX_PDF_GOAL)
doxygen-run-am: $(DX_RUN_GOAL)
.PHONY: clean-pkginclude clean-re2c doxygen-doc-am doxygen-doc-recursive doxygen-run-am doxygen-run-recursive