comparison scripts/Makefile.in @ 665:2aeae851a164

[project @ 1994-09-06 21:01:54 by jwe]
author jwe
date Tue, 06 Sep 1994 21:01:54 +0000
parents b4692246e165
children 0faebdd7df57
comparison
equal deleted inserted replaced
664:7d86cace6e7f 665:2aeae851a164
16 16
17 INSTALL = @INSTALL@ 17 INSTALL = @INSTALL@
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
19 INSTALL_DATA = @INSTALL_DATA@ 19 INSTALL_DATA = @INSTALL_DATA@
20 20
21 SOURCES = computer.in *.m 21 SOURCES = *.m
22 22
23 DISTFILES = Makefile.in $(SOURCES) 23 DISTFILES = Makefile.in $(SOURCES)
24 24
25 # Complete directory trees to distribute. 25 # Complete directory trees to distribute.
26 DISTDIRS = amr-image 26 DISTDIRS = amr-image
27 27
28 MFILES = $(wildcard $(srcdir)/*.m) 28 FCN_FILES = $(wildcard $(srcdir)/*.m)
29 MFILES_NO_DIR = $(notdir $(MFILES)) 29 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES))
30 30
31 all: computer.m 31 all:
32 .PHONY: all 32 .PHONY: all
33 33
34 computer.m: computer.in
35 rm -f computer.m
36 if test "$(target_host_type)" = unknown ; then \
37 sed -e "s/%target_host_type%/Hi Dave, I'm a HAL-9000/" \
38 $(srcdir)/computer.in > computer.t ; \
39 else \
40 sed -e "s/%target_host_type%/$(target_host_type)/" \
41 $(srcdir)/computer.in > computer.t ; \
42 fi
43 mv computer.t computer.m
44
45 check: all
46 .PHONY: check
47
48 install: all 34 install: all
49 if test -d $(libsubdir) ; then true ; \ 35 if test -d $(fcnfiledir) ; then true ; \
50 else $(TOPDIR)/mkpath $(libsubdir) ; fi 36 else $(TOPDIR)/mkpath $(fcnfiledir) ; fi
51 for f in $(MFILES_NO_DIR) ; do \ 37 for f in $(FCN_FILES_NO_DIR) ; do \
52 rm -f $(libdir)/$$f ; \ 38 rm -f $(fcnfiledir)/$$f ; \
53 $(INSTALL_DATA) $(srcdir)/$$f $(libsubdir)/$$f ; \ 39 $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$$f ; \
54 done 40 done
55 rm -f $(libsubdir)/computer.m
56 $(INSTALL_DATA) computer.m $(libsubdir)/computer.m
57 .PHONY: install 41 .PHONY: install
58 42
59 uninstall: 43 uninstall:
60 for f in $(MFILES_NO_DIR) ; do rm -f $(libsubdir)/$$f ; done 44 for f in $(FCN_FILES_NO_DIR) ; do rm -f $(fcnfiledir)/$$f ; done
61 .PHONY: uninstall 45 .PHONY: uninstall
62 46
63 clean: 47 clean:
64 rm -f computer.m computer.t
65 .PHONY: clean 48 .PHONY: clean
66 49
67 tags: $(SOURCES) 50 tags: $(SOURCES)
68 ctags $(SOURCES) 51 ctags $(SOURCES)
69 52