/usr/share/doc/ats-lang-anairiats-examples/examples/KernighanRitchie/Chapter05/Makefile is in ats-lang-anairiats-examples 0.2.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | #
#
# Makefile for K&R examples in Chapter 5
#
#
######
ATSUSRQ="$(ATSHOME)"
ifeq ($(ATSUSRQ),"")
ATSUSRQ="/usr"
endif
######
ATSCC=$(ATSUSRQ)/bin/atscc
ATSOPT=$(ATSUSRQ)/bin/atsopt
######
.PHONY: all
all:: checkall
all:: cleanall
######
checkall::
cleanall:: clean
cleanall:: ; $(RMF) *_?ats.html
######
checkall:: getint
cleanall:: ; $(RMF) getint
getint: getint.dats ; $(ATSCC) -o getint getint.dats
checkall:: strlen
cleanall:: ; $(RMF) strlen
strlen: strlen.dats ; $(ATSCC) -o strlen strlen.dats
checkall:: strcpy
cleanall:: ; $(RMF) strcpy
strcpy: strcpy.dats ; $(ATSCC) -o strcpy strcpy.dats
checkall:: strcmp
cleanall:: ; $(RMF) strcmp
strcmp: strcmp.dats ; $(ATSCC) -o strcmp strcmp.dats
checkall:: strcmp_alt
cleanall:: ; $(RMF) strcmp_alt
strcmp_alt: strcmp_alt.dats; $(ATSCC) -o strcmp_alt strcmp_alt.dats
checkall:: month_name
cleanall:: ; $(RMF) month_name
month_name: month_name.dats ; $(ATSCC) -o month_name month_name.dats
checkall:: month_day
cleanall:: ; $(RMF) month_day
month_day: month_day.dats ; $(ATSCC) -o month_day month_day.dats
######
html:: ; $(ATSOPT) --posmark_html -d getint.dats > getint_dats.html
html:: ; $(ATSOPT) --posmark_html -d strlen.dats > strlen_dats.html
html:: ; $(ATSOPT) --posmark_html -d strcpy.dats > strcpy_dats.html
html:: ; $(ATSOPT) --posmark_html -d strcmp.dats > strcmp_dats.html
html:: ; $(ATSOPT) --posmark_html -d strcmp_alt.dats > strcmp_alt_dats.html
html:: ; $(ATSOPT) --posmark_html -d month_name.dats > month_name_dats.html
html:: ; $(ATSOPT) --posmark_html -d month_day.dats > month_day_dats.html
######
RMF=rm -f
######
clean:
$(RMF) *~
$(RMF) *_?ats.c *_?ats.o
###### end of [Makefile] ######
|