-
Notifications
You must be signed in to change notification settings - Fork 26
/
makefile
59 lines (46 loc) · 1.36 KB
/
makefile
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
#############################################################################
#
# hwlib top-level Makefile
#
# (c) Wouter van Ooijen ([email protected]) 2017
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
#############################################################################
# This makefile is for library *maintenance* only.
# For *use* of the library, check the documentation.
.PHONY: clean build run error test notab doxygen all
run: error
MSG = You are trying to run in a library directory.
MSG += Make one of the project source files your current editor file.
error:
$(error $(MSG) )
BMPTK := ../bmptk
ifeq ($(OS),Windows_NT)
REMOVE := $(BMPTK)/tools/bmptk-rm
MAKE := bmptk-make
else
REMOVE := rm -rf
MAKE := make
endif
all: notab doxygen test demo
doxygen:
doxygen doxyfiles/doxyfile
build: doxygen
cd demo && $(MAKE) build
cd test && $(MAKE) build
@echo "**** build completed succesfully"
notab:
cd demo && $(MAKE) notab
cd test && $(MAKE) notab
@echo "**** no tabs found"
test:
cd test && $(MAKE) build && $(MAKE) run
@echo "**** test completed succesfully"
clean:
$(REMOVE) -rf html
cd demo && $(MAKE) clean
cd test && $(MAKE) clean
@echo "**** cleanup completed succesfully"