# make all: create application with bytecode compiler # make opt: create application with native compiler # make clean: remove intermediate files # make CLEAN: remove intermediate files (recursively) # make distclean: remove any superflous files # make install installs the created application #---------------------------------------------------------------------- .PHONY: all all: symlinks rm -f depend $(MAKE) -f Makefile.code TARGET=byte $(GOALS) wtimer-admin .PHONY: opt opt: symlinks rm -f depend $(MAKE) -f Makefile.code TARGET=opt $(GOALS) wtimer-admin .PHONY: clean clean: rm -f *.cmi *.cmo *.cma *.cmx *.o *.a *.cmxa rm -f wtimer.ui.bin wtimer.cgi wtimerd wtimer-admin .PHONY: CLEAN CLEAN: clean .PHONY: distclean distclean: clean rm -f *~ depend depend.pkg .PHONY: install install: mkdir -p $(INST_PREFIX)$(ETC_DIR) cp wtimer-config.xml $(INST_PREFIX)$(ETC_DIR) mkdir -p $(INST_PREFIX)$(WTIMER_DIR) mkdir -p $(INST_PREFIX)$(WTIMERLIB_DIR) mkdir -p $(INST_PREFIX)$(UI_DIR) cp *.ui wef.dtd $(INST_PREFIX)$(UI_DIR) rm -f $(INST_PREFIX)$(UI_DIR)/wtimer-config.xml ln -s $(ETC_DIR)/wtimer-config.xml $(INST_PREFIX)$(UI_DIR) mkdir -p $(INST_PREFIX)$(STATIC_DIR) cp *.jpeg *.png *.css *.js gpl.html $(INST_PREFIX)$(STATIC_DIR) if [ -f wtimer.cgi ]; then mkdir -p $(INST_PREFIX)$(CGI_DIR) && cp wtimer.cgi $(INST_PREFIX)$(CGI_DIR); fi if [ -f wtimerd ]; then mkdir -p $(INST_PREFIX)$(SBIN_DIR) && cp wtimerd $(INST_PREFIX)$(SBIN_DIR); fi if [ -f wtimer-admin ]; then mkdir -p $(INST_PREFIX)$(BIN_DIR) && cp wtimer-admin $(INST_PREFIX)$(BIN_DIR); fi mkdir -p $(INST_PREFIX)$(DDL_DIR) cp ddl/Makefile ddl/*.sql $(INST_PREFIX)$(DDL_DIR) .PHONY: symlinks symlinks: wd_application_2.dtd wd_application_2.dtd: ln -s `ocamlfind query wdialog`/wd_application_2.dtd . include Makefile.conf