# GNU Makefile # 01/15/98 C. Ludescher # # Check for new $(CODESYSDIR)/source/doc/*.hlp # Convert to .html # # Must be run from ...help directory for perl to work # Also: old files must be deleted; otherwise perl script will append. # SRC = $(TRANSPROOT)/codesys/source/doc WWW = $(HOME)/public_html/help files = transp.hlp xtc.hlp ufiles.hlp uread.hlp sg.hlp help: help0 help1 help0: @echo FILES: $(files) @echo TRANSPROOT: $(TRANSPROOT) @echo PATH: $(PATH) # Note: $* and $@ are the same = current target # $< is the source help1: $(foreach file,$(files),$(file)) %: $(SRC)/% @echo $< rm *$(subst .hlp,*,$@) @cp $< . $(TRANSPROOT)/bin/hlptohtml.perl $@ @rm $@ @touch $@