made Makefile more portable

This commit is contained in:
ceriel 1990-11-27 16:41:13 +00:00
parent 2a6b538c9b
commit ae8ca35563
2 changed files with 8 additions and 5 deletions

View file

@ -168,9 +168,10 @@ Lnt: Cfiles
@rm -f nmclash.o a.out @rm -f nmclash.o a.out
install: Main install: Main
rm -f $(EMHOME)/lib/em_cemcom.ansi # $(EMHOME)/man/em_cemcom.6 rm -f $(EMHOME)/lib/em_cemcom.ansi
# rm -f $(EMHOME)/man/em_cemcom.6
cp $(CURRDIR)main $(EMHOME)/lib/em_cemcom.ansi cp $(CURRDIR)main $(EMHOME)/lib/em_cemcom.ansi
# cp $(CURRDIR)cemcom.1 $(EMHOME)/man/em_cemcom.6 # cp $(CURRDIR)cemcom.1 $(EMHOME)/man/em_cemcom.6
Oinstall: Omain Oinstall: Omain
cp $(CURRDIR)omain $(EMHOME)/lib/em_cemcomO cp $(CURRDIR)omain $(EMHOME)/lib/em_cemcomO

View file

@ -53,7 +53,7 @@ mktab: mktab.o $(LIBS)
mktab.o: scan.c optim.h param.h pattern.h types.h mktab.o: scan.c optim.h param.h pattern.h types.h
pop_push.c ./pop_push.h: $(EMHOME)/etc/em_table pop_push.awk pop_push.c pop_push.h: $(EMHOME)/etc/em_table pop_push.awk
awk -f pop_push.awk < $(EMHOME)/etc/em_table > pop_push.c awk -f pop_push.awk < $(EMHOME)/etc/em_table > pop_push.c
depend: pattern.c depend: pattern.c
@ -88,10 +88,12 @@ clean:
pop_push.c pop_push.h pop_push.c pop_push.h
regnoglob.o: reg.c regnoglob.o: reg.c
$(CC) $(CFLAGS) -c -o regnoglob.o reg.c $(CC) $(CFLAGS) -c reg.c
mv reg.o regnoglob.o
regglob.o: reg.c regglob.o: reg.c
$(CC) $(CFLAGS) -c -DGLOBAL_OPT -o regglob.o reg.c $(CC) $(CFLAGS) -c -DGLOBAL_OPT reg.c
mv reg.o regglob.o
# the next lines are generated automatically # the next lines are generated automatically
#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO #AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO