-
Notifications
You must be signed in to change notification settings - Fork 86
/
Makefile.am
54 lines (44 loc) · 1.81 KB
/
Makefile.am
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
SUBDIRS = lib src . tests @EXAMPLESDIR@
man1_MANS = doc/man/reflex.1
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = reflex.pc reflexmin.pc
EXTRA_DIST = README.md LICENSE.txt CONTRIBUTING.md CODE_OF_CONDUCT.md reflex.pc.in reflexmin.pc.in
all-local: cp2bin
.PHONY: cp2bin
# to copy the reflex binary to reflex/bin
cp2bin: $(top_builddir)/src/reflex
-mkdir -p $(top_builddir)/bin
-cp -f $< $(top_builddir)/bin
@echo
@echo "OK"
@echo
# to generate the documentation: make doc/html
libdocdir = @DOXYGEN_OUTPUT_DIRECTORY@
DOXYGEN = @DOXYGEN@
$(libdocdir): $(top_builddir)/doc/Doxyfile $(top_builddir)/doc/index.md
if test -d $(libdocdir); then \
rm -Rf $(libdocdir); \
fi
if test "$(DOXYGEN)" != NO_DOXYGEN; then \
cd doc; \
$(DOXYGEN); \
else \
mkdir $(libdocdir); \
echo "No doxygen available -- library documentation not generated" >$(libdocdir)/stamp; \
fi
install-data-hook:
@echo " ______________________________________________________ "; \
echo "| |"; \
echo "| You have successfully built and installed reflex. |"; \
echo "| |"; \
echo "| You can use the reflex command to generate scanners. |"; \
echo "| Link your generated scanner with -lreflex. |"; \
echo "| |"; \
echo "| Thanks for using reflex. |"; \
echo "| |"; \
echo "| https://github.com/Genivia/RE-flex |"; \
echo "| https://sourceforge.net/projects/re-flex |"; \
echo "|______________________________________________________|";
.PHONY: test
test: $(top_builddir)/src/reflex
-cd tests; $(MAKE) && ./rtest