Changed installation mechanism

This commit is contained in:
ceriel 1991-01-04 15:01:59 +00:00
parent 38d1831dd7
commit 27459757db
4 changed files with 29 additions and 9 deletions

View file

@ -14,6 +14,14 @@ install:
cd src; make cd src; make
rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1 rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1
cp src/LLgen $(INSTALLDIR)/LLgen cp src/LLgen $(INSTALLDIR)/LLgen
cp lib/rec $(LIBDIR)/rec
cp lib/incl $(LIBDIR)/incl
cp LLgen.1 $(MANDIR)/LLgen.1
firstinstall:
cd src; make first
rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1
cp src/LLgen $(INSTALLDIR)/LLgen
-mkdir $(LIBDIR) -mkdir $(LIBDIR)
cp lib/rec $(LIBDIR)/rec cp lib/rec $(LIBDIR)/rec
cp lib/incl $(LIBDIR)/incl cp lib/incl $(LIBDIR)/incl

View file

@ -13,7 +13,7 @@ To install LLgen, proceed as follows:
library files, INSTALLDIR should be set to the directory where LLgen library files, INSTALLDIR should be set to the directory where LLgen
is to be put. is to be put.
- now type - now type
make install make firstinstall
- This should do all the work. - This should do all the work.
LLgen.1 contains a man-page. LLgen.1 contains a man-page.

View file

@ -1,10 +1,9 @@
parser
cclass.c cclass.c
cclass.h cclass.h
LLgen.c LLgen.c.dist
LLgen.g LLgen.g
Lpars.c Lpars.c.dist
Lpars.h Lpars.h.dist
Makefile Makefile
alloc.c alloc.c
assert.h assert.h
@ -20,6 +19,6 @@ name.c
reach.c reach.c
sets.c sets.c
sets.h sets.h
tokens.c tokens.c.dist
tokens.g tokens.g
types.h types.h

View file

@ -15,8 +15,17 @@ all: parser
@make LLgen "LDFLAGS=$(LDFLAGS)" "CC=$(CC)" "CFLAGS=$(CFLAGS)" "PROF=$(PROF)" @make LLgen "LDFLAGS=$(LDFLAGS)" "CC=$(CC)" "CFLAGS=$(CFLAGS)" "PROF=$(PROF)"
parser: $(GFILES) parser: $(GFILES)
-LLgen $(LLOPT) $(GFILES) LLgen $(LLOPT) $(GFILES)
# must continue when installing LLgen @touch parser
first: firstparser
@make LLgen "LDFLAGS=$(LDFLAGS)" "CC=$(CC)" "CFLAGS=$(CFLAGS)" "PROF=$(PROF)"
firstparser:
cp LLgen.c.dist LLgen.c
cp tokens.c.dist tokens.c
cp Lpars.c.dist Lpars.c
cp Lpars.h.dist Lpars.h
@touch parser @touch parser
LLgen: $(OBJECTS) LLgen: $(OBJECTS)
@ -30,11 +39,15 @@ lint:
$(LINT) $(INCLUDES) $(CFILES) $(LINT) $(INCLUDES) $(CFILES)
clean: clean:
-rm -f *.o LL.temp LL.xxx LL.output LLgen -rm -f *.o LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch]
distr: distr:
-rm -f parser -rm -f parser
make parser make parser
cp Lpars.c Lpars.c.dist
cp Lpars.h Lpars.h.dist
cp LLgen.c LLgen.c.dist
cp tokens.c tokens.c.dist
# The next lines are generated automatically # The next lines are generated automatically
# AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO # AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO