-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmymakefile
More file actions
62 lines (43 loc) · 1.69 KB
/
mymakefile
File metadata and controls
62 lines (43 loc) · 1.69 KB
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
CFLAGS= $(MEEXTRAFLAGS)
OFILES= main.o ansi.o basic.o bind.o buffer.o display.o \
file.o fileio.o meline.o random.o region.o \
search.o mespawn.o tcap.o termio.o window.o word.o \
meexec.o eval.o isearch.o input.o crypt.o memenu.o $(EXTRAOFILES)
CFILES= main.c ansi.c basic.c bind.c buffer.c display.c \
file.c fileio.c meline.c random.c region.c \
search.c mespawn.c tcap.c termio.c window.c word.c \
meexec.c eval.c isearch.c input.c crypt.c memenu.c $(EXTRACFILES)
HFILES= estruct.h edef.h efunc.h epath.h evar.h
VMSFILES= vmscc.com vmslink.com vmslinkshr.com vmsmake.com spawnemacs.com emacsprocess.com
MISCFILES= build.emacs mymakefile read.me read.me2 emacs.key emacsrc.* $(VMSFILES)
.PHONY: all install distclean clean tar
all: emacs
emacs: $(OFILES)
$(CC) $(CFLAGS) $(OFILES) -o emacs $(MEEXTRALIB)
main.o: ebind.h
$(OFILES): $(HFILES)
BIN=/usr/local/bin
EMACSEXE=uemacs
BINEMACSEXE=$(BIN)/$(EMACSEXE)
install: emacs
if [ -f "$(BINEMACSEXE)" ] ; then sudo mv -f "$(BINEMACSEXE)" "$(BINEMACSEXE)-" ; fi
sudo cp -p emacs "$(BINEMACSEXE)"
sudo chmod 555 "$(BINEMACSEXE)"
sudo chown root:root "$(BINEMACSEXE)"
distclean: clean
rm -f emacs emacs.tgz emacs.tar.bz2 emacs.zip
clean:
rm -f *.o core
tar: emacs.tar.bz2
emacs.tar: $(MISCFILES) $(HFILES) $(CFILES)
rm -f emacs.tar
tar cvf - $(MISCFILES) *.h *.c > emacs.tar
emacs.tgz: $(MISCFILES) $(HFILES) $(CFILES)
rm -f emacs.tgz
tar cvf - $(MISCFILES) *.h *.c | gzip -v9 > emacs.tgz
emacs.tar.bz2: $(MISCFILES) $(HFILES) $(CFILES)
rm -f emacs.tar.bz2
tar cvf - $(MISCFILES) *.h *.c | bzip2 -v9 > emacs.tar.bz2
emacs.zip: $(MISCFILES) $(HFILES) $(CFILES)
rm -f emacs.zip
zip -9 emacs.zip $(MISCFILES) *.h *.c