Skip to content

Commit 9662379

Browse files
author
=
committed
got rid of crap makefile
1 parent 7591e90 commit 9662379

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

makefile

+29-13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
FILES := \
2+
.travis.yml \
3+
Deque.h \
4+
Deque.log \
5+
html \
6+
TestDeque.c++ \
7+
TestDeque.out
8+
19
ifeq ($(shell uname), Darwin)
210
CXX := g++
311
CXXVER := --version 2>&1 | grep c++
@@ -33,25 +41,34 @@ CXXFLAGS := -pedantic -std=c++11 -Wall
3341

3442
.PRECIOUS: %.app
3543

44+
check:
45+
@for i in $(FILES); \
46+
do \
47+
[ -e $$i ] && echo "$$i found" || echo "$$i NOT FOUND"; \
48+
done
49+
3650
clean:
3751
rm -f *.gcda
3852
rm -f *.gcno
3953
rm -f *.gcov
4054
rm -f TestDeque
41-
rm -f TestDeque.out
4255

4356
sync:
44-
make clean
4557
@echo `pwd`
46-
@rsync -r -t -u -v --delete \
47-
--include "Deque.h" \
48-
--include "makefile" \
49-
--include "TestDeque.c++" \
50-
--exclude "*" \
58+
@rsync -r -t -u -v --delete \
59+
--include "Deque.h" \
60+
--include "makefile" \
61+
--exclude "*" \
5162
. downing@$(CS):cs/cs378/github/c++/deque/
5263

5364
test: TestDeque.out
5465

66+
html: Doxyfile Deque.h TestInteger.c++
67+
doxygen Doxyfile
68+
69+
Deque.log:
70+
git log > Deque.log
71+
5572
versions:
5673
uname -a
5774
@echo
@@ -79,11 +96,10 @@ endif
7996
@echo
8097
doxygen --version
8198

82-
TestDeque: Deque.h TestDeque.c++
83-
$(CXX) $(GCOVFLAGS) $(CXXFLAGS) TestDeque.c++ -o TestDeque $(LDFLAGS)
99+
TestDeque: Integer.h TestInteger.c++
100+
$(CXX) $(COVFLAGS) $(CXXFLAGS) TestDeque.c++ -o TestInteger $(LDFLAGS)
84101

85-
TestDeque.out: TestDeque
86-
$(VALGRIND) ./TestDeque > TestDeque.out 2>&1
87-
$(GCOV) -b Deque.h >> TestDeque.out
88-
$(GCOV) -b TestDeque.c++ >> TestDeque.out
102+
TestDeque.out: TestInteger
103+
$(VALGRIND) ./TestDeque > TestInteger.out 2>&1
104+
$(GCOV) -b TestDeque.c++ >> TestInteger.out
89105
cat TestDeque.out

0 commit comments

Comments
 (0)