pcs 97/09/24 14:27:36
Modified: src/os/unix Makefile.tmpl Log: Do not copy OS header files to src/main, use symlinks instead Revision Changes Path 1.7 +9 -4 apachen/src/os/unix/Makefile.tmpl Index: Makefile.tmpl =================================================================== RCS file: /export/home/cvs/apachen/src/os/unix/Makefile.tmpl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Makefile.tmpl 1997/09/12 13:35:29 1.6 +++ Makefile.tmpl 1997/09/24 21:27:34 1.7 @@ -5,12 +5,17 @@ INCDIR=../../main OBJS= os.o os-inline.o +COPY= os.h os-inline.c LIB= libos.a -all: $(LIB) - cp os.h ../../main - cp os-inline.c ../../main +all: $(LIB) copy + +copy: + for i in $(COPY); do \ + rm -f $(INCDIR)/$$i ;\ + ln -s `pwd`/$$i $(INCDIR)/$$i ;\ + done $(LIB): $(OBJS) rm -f $@ @@ -26,4 +31,4 @@ $(OBJS): Makefile # DO NOT REMOVE -os.o: os.c +os.o: os.c os-inline.c