-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (38 loc) · 931 Bytes
/
Makefile
File metadata and controls
45 lines (38 loc) · 931 Bytes
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
#
# YOU DONT NEED TO TOUCH ANYTHING BELOW
#
BASE = $(shell basename `pwd`)
VERSION= 0.2
TARGET = go2pov
DATE = $(shell date +%Y%m%d_%H%M)
DIRNAME= $(BASE)-$(VERSION)
ARCHIVE= docs/AUTHOR docs/BUGS docs/Doxyfile\
docs/FAQ docs/GPL docs/HOWTO docs/INSTALL\
docs/TODO docs/VERSION\
src/*.cpp src/*.h src/Makefile\
samples/*.pov samples/*.inc\
Makefile
export VERSION
all: $(TARGET)
$(TARGET):
rm -f $(TARGET)
cd src && $(MAKE)
strip $(TARGET)
clean:
cd src && $(MAKE) clean
rm -f *.pov *.png *.inc *.txt
rm -f $(TARGET) mtrace.log
tidy:
cd src && $(MAKE) tidy
rm -f *~ $(TARGET) mtrace.log
rm -f *.pov
rm -f -r docs/autodoc.html
archive: tidy
@find $(ARCHIVE) -not -type d | sed s:^:$(DIRNAME)/: >MANIFEST
(cd ..; ln -s $(BASE) $(DIRNAME))
@(cd ..; tar -czf $(BASE)/$(DIRNAME).tar.gz `cat $(BASE)/MANIFEST`)
@(cd ..; rm $(DIRNAME))
rm MANIFEST
release: archive
test:$(TARGET)
cd src && make test