-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
41 lines (29 loc) · 834 Bytes
/
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
.PHONY: all style clean distclean realclean
OCT := sqlite3.oct
OBJ := cl_sqlite3_handler.o
MKOCTFILE ?= mkoctfile
MKOCTFLAGS ?= -Wall -v
all: $(OBJ) $(OCT)
debug : MKOCTFLAGS += -ggdb -O0
debug : all
%.o: %.cc %.h
$(MKOCTFILE) $(MKOCTFLAGS) -c $<
%.oct: %.cc $(OBJ)
$(MKOCTFILE) $(MKOCTFLAGS) $^ @LIBS@ -o $@
check: $(OCT)
$(MAKE) -C test
octave --no-gui checkit.m
style:
# remove trailing whitespace
find . \( -name "*.m" -or -name "*.cc" -or -name "*.h" -or -name "Makefile" \) -exec sed -i 's/[[:space:]]*$$//' {} \;
# call astyle
find . \( -name "*.cc" -or -name "*.h" \) -exec astyle --style=gnu -s2 -n {} \;
clean:
$(MAKE) -C test $@
rm -f *.oct *.o
rm -f octave-core octave-workspace
distclean: clean
rm -f Makefile
realclean: distclean
rm -f configure config.status config.log
rm -rf autom4te.cache