Skip to content
This repository was archived by the owner on Jul 9, 2018. It is now read-only.

Commit 69ee930

Browse files
committed
Removed autoconf and automake stuff. Also found a better manpage.
1 parent 61438e1 commit 69ee930

File tree

14 files changed

+119
-373
lines changed

14 files changed

+119
-373
lines changed

.gitignore

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
1-
Makefile
2-
Makefile.in
3-
4-
autom4te.*
5-
configure
6-
7-
aclocal.m4
8-
config.log
9-
config.status
10-
/config/compile
11-
/config/config.*
12-
/config/depcomp
13-
/config/install-sh
14-
/config/missing
15-
*.m4
16-
17-
#lib/
18-
19-
*.[oa]
20-
.deps/
21-
221
*[A-Z]*.h
232
*.m5
243
*.z5
254

5+
lib/
6+
src/
7+
268
inform

Makefile

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
CC = gcc
2+
3+
OPTS = -g -Wall -Wextra
4+
5+
PREFIX = /usr/local
6+
MAN_PREFIX = $(PREFIX)
7+
8+
VERSION = 6.33.1
9+
NAME = inform
10+
BINNAME = $(NAME)
11+
DISTNAME = $(BINNAME)-$(VERSION)
12+
distdir = $(DISTNAME)
13+
LIBDIR = $(PREFIX)/share/$(BINNAME)/lib
14+
INCLUDEDIR = $(PREFIX)/share/$(BINNAME)/include
15+
MANPAGE = $(NAME).1
16+
MANDIR = $(MAN_PREFIX)/man/man1
17+
18+
DEFINES= -DInclude_Directory=\"$(INCLUDEDIR),$(LIBDIR)\" -DTemporary_Directory=\"/tmp\"
19+
20+
SOURCES = $(wildcard src/*.c)
21+
OBJECTS = $(patsubst %.c,%.o,${SOURCES})
22+
23+
LIBRARY = lib
24+
LIB_LINKS = English.h Grammar.h Parser.h Verblib.h VerbLib.h
25+
26+
DEMO_SRC = $(wildcard demos/*.inf)
27+
DEMO_Z5 = $(patsubst %.inf,%.z5,${DEMO_SRC})
28+
DEMODIR = $(PREFIX)/share/$(BINNAME)/demos
29+
30+
TUTOR_SRC = $(wildcard tutor/*.inf)
31+
TUTOR_Z5 = $(patsubst %.inf,%.z5,${TUTOR_SRC})
32+
TUTORDIR = $(PREFIX)/share/$(BINNAME)/tutor
33+
34+
.PHONY: all clean lib
35+
36+
all: $(BINNAME) lib demos tutor
37+
38+
$(OBJECTS): %.o: %.c
39+
$(CC) $(DEFINES) -o $@ -c $<
40+
41+
$(BINNAME): $(OBJECTS)
42+
$(CC) -o $@ $^
43+
44+
lib:
45+
@ cd $(LIBRARY); \
46+
for file in $(LIB_LINKS); do \
47+
realfile=`echo $$file | tr '[A-Z]' '[a-z]'`; \
48+
echo $$realfile $$file; \
49+
test -r $$file || ln -s $$realfile $$file; \
50+
done
51+
52+
$(DEMO_Z5): %.z5: %.inf
53+
$(PWD)/$(BINNAME) +lib $^ $@
54+
55+
demos: $(BINNAME) lib $(DEMO_Z5)
56+
57+
$(TUTOR_Z5): %.z5: %.inf
58+
$(PWD)/$(BINNAME) +lib $^ $@
59+
60+
tutor: $(BINNAME) lib $(TUTOR_Z5)
61+
62+
install: $(BINNAME) lib
63+
strip $(BINNAME)
64+
install -c -m 755 $(BINNAME) $(PREFIX)/bin
65+
install -d -m 755 $(LIBDIR)
66+
install -c -m 644 $(wildcard lib/*) $(LIBDIR)
67+
install -d -m 755 $(INCLUDEDIR)
68+
install -c -m 644 $(wildcard include/*) $(INCLUDEDIR)
69+
install -d -m 755 $(MANDIR)
70+
install -c -m 644 $(MANPAGE) $(MANDIR)
71+
install -d -m 755 $(DEMODIR)
72+
install -c -m 644 $(wildcard demos/*) $(DEMODIR)
73+
install -d -m 755 $(TUTORDIR)
74+
install -c -m 644 $(wildcard demos/*) $(TUTORDIR)
75+
76+
77+
uninstall:
78+
rm -f $(PREFIX)/bin/$(BINNAME)
79+
rm -rf $(LIBDIR)
80+
rm -rf $(INCLUDEDIR)
81+
rm -rf $(DEMODIR)
82+
rm -rf $(TUTORDIR)
83+
84+
dist: distclean
85+
mkdir $(distdir)
86+
@for file in `ls`; do \
87+
if test $$file != $(distdir); then \
88+
cp -Rp $$file $(distdir)/$$file; \
89+
fi; \
90+
done
91+
find $(distdir) -type l -exec rm -f {} \;
92+
rm -rf $(distdir)/src/.git* $(distdir)/src/.deps
93+
rm -rf $(distdir)/lib/.git* $(distdir)/lib/.deps
94+
tar chof $(distdir).tar $(distdir)
95+
gzip -f --best $(distdir).tar
96+
rm -rf $(distdir)
97+
@echo
98+
@echo "$(distdir).tar.gz created"
99+
@echo
100+
101+
clean:
102+
rm -f $(BINNAME)
103+
rm -f src/*.o
104+
rm -f demos/*z5
105+
rm -f tutor/*z5
106+
cd $(LIBRARY); \
107+
for file in $(LIB_LINKS); do \
108+
rm -f $$file; \
109+
done
110+
111+
distclean: clean
112+
find . -name *core -exec rm -f {} \;
113+
-rm -rf $(distdir)
114+
-rm -f $(distdir).tar $(distdir).tar.gz
115+
116+

Makefile.am

Lines changed: 0 additions & 27 deletions
This file was deleted.

autogen.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

config/Makefile.am.lib

Lines changed: 0 additions & 65 deletions
This file was deleted.

config/Makefile.am.src

Lines changed: 0 additions & 35 deletions
This file was deleted.

config/Makefile.inc

Lines changed: 0 additions & 44 deletions
This file was deleted.

configure.in

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)