-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_include
57 lines (34 loc) · 1.19 KB
/
Makefile_include
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
#
# A simple Makefile
# for packing ATS-includes
#
######
include share.mk
######
all:: make_tempacc
all:: copyfiles
all:: tarzvcf
######
DST=$(ATSDIST)-include-$(RELEASE_VERSION)
######
BASE=incld_root
######
make_tempacc::; $(RMRF) $(DST)
make_tempacc::; $(CPRFP) $(BASE) $(DST)
make_tempacc::; $(MAKE) -C $(TMPHOME)/utils/tempacc copy
export TEMPTORY=$(TMPHOME)
make_tempacc::; $(MAKE) -C $(TMPHOME)/utils/tempacc/BUILD -f ../Makefile_build TEMPTORYQ=$(TMPHOME)
make_tempacc::; $(CPRFP) $(TMPHOME)/utils/tempacc/BUILD/*.c $(DST)/utils/tempacc/
# for future reference
make_tempacc::; $(CPRFP) $(TMPHOME)/utils/tempacc/DATS/ $(DST)/utils/tempacc/
make_tempacc::; $(CPRFP) $(TMPHOME)/utils/tempacc/SATS/ $(DST)/utils/tempacc/
######
copyfiles:: ; $(CPFP) $(TMPHOME)/ccomp/runtime/*.h $(DST)/ccomp/runtime/
copyfiles:: ; $(CPFP) $(TMPHOME)/ccomp/runtime/*.c $(DST)/ccomp/runtime/
copyfiles:: ; $(CPFP) $(TMPHOME)/libats/CATS/*.cats $(DST)/libats/CATS/
copyfiles:: ; $(CPFP) $(TMPHOME)/libats/libc/CATS/*.cats $(DST)/libats/libc/CATS/
copyfiles:: ; $(CPFP) $(TMPHOME)/libats/temp/CATS/*.cats $(DST)/libats/temp/CATS/
######
tarzvcf:: ; $(TARZVCF) $(DST).tgz $(DST)
######
cleanall:: ; $(RMRF) $(DST)