HCPAGES=$(shell /usr/lib/tlmp/remaphc.sh $(DOCROOT) hc $(PAGESHC)) ifeq ($(EXPORT),) # Publish to the local document root $(HCPAGES): $(DOCROOT)/%.hc: %.hcc @echo $< \-\> $@ @tlccversion \ --cppoptions "$(INCLUDEDIRECTIVES) -I/usr/include/tlmp -I/usr/include/linuxconf" \ $< /tmp/`basename $< .hcc`.versions @tlmpwebcc $< \ | tlcc \ --compvers /tmp/`basename $< .hcc`.versions \ --compvers TLMP.versions \ --compvers $<.versions \ --name $(basename $(notdir $@)).tlcc - /tmp/$(basename $(notdir $@)).cc @$(GPP) -DEXPORT= -fPIC $(FLAGS) -I. -I/usr/include/tlmp -I/usr/include/linuxconf \ -c /tmp/$(basename $(notdir $@)).cc -o /tmp/test.o @mkdir -p $(DOCROOT) @$(GPPLINK) -g -shared -Wl,-soname,test.so.1 -o \ $@ /tmp/test.o @rm -f /tmp/test.o @(grep -q docsession $< && tlmpdoc --upddoc $(BASEDIR)$(CURDIR)/`basename $@`) || true else # Publish to the prod server $(HCPAGES): $(SITE)/$(CURDIR)/%.hc: %.hcc @echo $< \-\> $@ @bigcp -v $< $(INCLS) $(HOME)/n/$(VDIR)//tmp @tlmpwebcc $< \ | tlcc --name $(basename $(notdir $@)).tlcc - $(HOME)/n/$(VDIR)//tmp/$(basename $(notdir $@)).cc @$(HOME)/n/$(VDIR)//usr/bin/$(GPP) -fPIC $(FLAGS) -I/usr/include/tlmp -I/usr/include/linuxconf -c /tmp/$(basename $(notdir $@)).cc -o /tmp/test.o @$(HOME)/n/$(VDIR)//usr/bin/$(GPPLINK) -g -shared -Wl,-soname,test.so.1 -o \ /tmp/$(basename $(notdir $@)).hc /tmp/test.o @$(HOME)/n/$(VDIR)//bin/mkdir -p $(LSITE)/$(CURDIR) @$(HOME)/n/$(VDIR)//bin/cp -a /tmp/$(basename $(notdir $@)).hc $(LSITE)/$(CURDIR)/. @rm -f $(HOME)/n/$(VDIR)//tmp/test.o @(grep -q docsession $< && $(HOME)/n/$(VDIR)//usr/bin/tlmpdoc --text --askpass --upddoc $(CURDIR)/`basename $@`) || true endif