-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
67 lines (53 loc) · 1.23 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
60
61
62
63
64
65
66
67
#
# Project: FullereneViewer
# Version: 1.0
# Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext)
# Create: 2014/05/25 17:00:00 JST
#
PROJECT= FullereneViewer
VERSION= DATE-TIME
DATE= $(shell date +20%y%m%d-%H%M%S)
ARCH= $(PROJECT)-$(DATE).tar.gz
.PHONY: all project version
.PHONY: Qt install depend tags dist clean Qtclean distclean spike jerry
all:
touch src/Depend.mk
cd src; $(MAKE) depend
cd src; $(MAKE) all
project:
@echo $(PROJECT)
version:
@echo $(VERSION)
Qt:
touch src/Depend.mk
cd src; $(MAKE) depend
cd src; $(MAKE) Qt
install:
touch src/Depend.mk
cd src; $(MAKE) depend
cd src; $(MAKE) install
depend:
touch src/Depend.mk
cd src; $(MAKE) depend
tags:
touch src/Depend.mk
cd src; $(MAKE) tags
dist:
rm -rf ../dist/$(PROJECT)
mkdir -p ../dist/$(PROJECT)
echo $(ARCH) > archive.name
cp -prf * ../dist/$(PROJECT)
(cd ../dist/$(PROJECT); $(MAKE) distclean)
touch archive.name ../dist/$(PROJECT)/archive.name
(cd ../dist; tar cvfz ../`cat $(PROJECT)/archive.name` $(PROJECT))
rm -rf ../dist/$(PROJECT)
clean:
rm -f *.core *~ *.bak *~ */*~ */*.bak
touch src/Depend.mk
cd src; $(MAKE) clean
Qtclean:
touch src/Depend.mk
cd src; $(MAKE) Qtclean
distclean: clean
touch src/Depend.mk
cd src; $(MAKE) distclean