File: Makefile.gen

package info (click to toggle)
ats2-lang 0.4.2-4
  • links: PTS
  • area: main
  • in suites:
  • size: 40,524 kB
  • sloc: ansic: 389,898; makefile: 7,138; javascript: 1,852; lisp: 811; sh: 657; php: 573; python: 387; perl: 365
file content (56 lines) | stat: -rw-r--r-- 981 bytes parent folder | download | duplicates (5)
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
######
#
# A Makefile for processing [Makefile.atxt]
# to generate Makefiles that do the actual work
#
######
#
# Author: Hongwei Xi (gmhwxiATgmailCOM)
#
######

ATSHOMEQ="$(ATSHOME)"

######

ATSCC=$(ATSHOMEQ)/bin/atscc
ATSDOC=$(ATSHOMEQ)/bin/atsdoc

######

Makefile: Makefile.exe ; ./$< > $@

Makefile.exe: Makefile_atxt.dats
	$(ATSCC) $(GCFLAG) -o $@ $< -latsdoc
Makefile_atxt.dats: Makefile.atxt
	$(ATSDOC) --outcode $@ -i $< > Makefile_atxt.txt

######

Makefile2: Makefile2.exe ; ./$< > $@

Makefile2.exe: Makefile2_atxt.dats
	$(ATSCC) $(GCFLAG) -o $@ $< -latsdoc
Makefile2_atxt.dats: Makefile2.atxt
	$(ATSDOC) --outcode $@ -i $< > Makefile2_atxt.txt

######

RMF=rm -f

######

clean:: ; $(RMF) *~
clean:: ; $(RMF) *_?ats.o *_?ats.c
clean:: ; $(RMF) *_atxt.txt
clean:: ; $(RMF) *_atxt.dats
clean:: ; $(RMF) Makefile.exe
clean:: ; $(RMF) Makefile2.exe

cleanall:: clean
cleanall:: ; $(RMF) Makefile
cleanall:: ; $(RMF) Makefile2

######

###### end of [Makefile.gen] ######