source: _old/app/Makefile @ 7bed30f

Last change on this file since 7bed30f was a6e708f, checked in by tom <tom@…>, 13 years ago

ANULOWANIE POPRZEDNIEGO COMMITU

Revert "Replacing old implementation with working implementation"

This reverts commit 1e121f45e2d091fcd34a893291b8453e350d5884.

Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit.

Committer: tom <tom@lim.(none)>

On branch master
Changes to be committed:

(use "git reset HEAD <file>..." to unstage)

modified: _old/app/Makefile
deleted: _old/app/conf/Makefile
deleted: _old/app/conf/compiledic.conf
deleted: _old/app/conf/cor.conf
deleted: _old/app/conf/dgc.conf
deleted: _old/app/conf/dgp.conf
deleted: _old/app/conf/gph.conf
deleted: _old/app/conf/grp.conf
deleted: _old/app/conf/gue.conf
deleted: _old/app/conf/kor.conf
deleted: _old/app/conf/lem.conf
deleted: _old/app/conf/mar.conf
deleted: _old/app/conf/ser.conf
deleted: _old/app/conf/utt.conf
modified: _old/app/src/common/Makefile
modified: _old/app/src/compiledic/Makefile
modified: _old/app/src/compiledic/aut2fsa.cc
modified: _old/app/src/cor/Makefile
modified: _old/app/src/dgp/Makefile
new file: _old/app/src/dgp/canonize
new file: _old/app/src/dgp/dgc
modified: _old/app/src/dgp/grammar.hh
modified: _old/app/src/dgp/mgraph.hh
modified: _old/app/src/dgp/sgraph.hh
modified: _old/app/src/dgp/thesymbols.hh
new file: _old/app/src/dgp/tre
modified: _old/app/src/gue/Makefile
modified: _old/app/src/gue/guess.cc
modified: _old/app/src/kor/Makefile
modified: _old/app/src/kor/corlist.cc
modified: _old/app/src/kor/corr.cc
new file: _old/app/src/kor/corr.hh
modified: _old/app/src/kor/main.cc
modified: _old/app/src/lem/Makefile
modified: _old/app/src/lem/lem.cc
modified: _old/app/src/lib/Makefile
modified: _old/app/src/lib/auttools.cc
modified: _old/app/src/lib/symtab.cc
modified: _old/app/src/lib/tft.h
modified: _old/app/src/lib/tfti.h
modified: _old/app/src/lib/ttrans.h
modified: _old/app/src/lib/word.cc
modified: _old/app/src/lib/word.h
modified: _old/app/src/tok.c/Makefile
modified: _old/app/src/tok.c/cmdline_tok.ggo
modified: _old/app/src/tok.c/common_tok.cc
modified: _old/app/src/tok/Makefile
modified: _old/nawszelkiwypadek/tools/aut2fsa
modified: _old/nawszelkiwypadek/tools/cor_dic/makeLabels.pl
modified: _old/nawszelkiwypadek/tools/cor_dic/prep.pl
modified: _old/nawszelkiwypadek/tools/fsm2aut
modified: _old/nawszelkiwypadek/tools/gue_dic/canon.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/compile_user_dict.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/count_prefs.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/cut_prefs.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/makeLabels.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/prep.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/prep_user_dict.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/rmDup.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/stat.pl
modified: _old/nawszelkiwypadek/tools/gue_dic/stat_pre.pl
modified: _old/nawszelkiwypadek/tools/lem_dic/makeLabels.pl
modified: _old/nawszelkiwypadek/tools/lem_dic/prep.pl
modified: auto/defaults
modified: auto/options
modified: auto/output/Makefile
modified: auto/output/config_h
modified: auto/summary
modified: configure

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[25ae32e]1# main makefile
2
[8d3e6ab]3# ******************************
4# * Local variables
5# ******************************
6CUR_DIR=$(shell pwd)
7SRC_DIR=$(CUR_DIR)/src
8OUTPUT_DIR=$(CUR_DIR)/output
[25ae32e]9
[8d3e6ab]10# ******************************
11# * Global for make globals
12# ******************************
[25ae32e]13
[8d3e6ab]14export UTT_DIR=${OUTPUT_DIR}
[25ae32e]15
[b2647de]16# executables
17export UTT_BIN_DIR=${UTT_DIR}/bin
18# configuration files
19export UTT_CONF_DIR=${UTT_DIR}/etc/utt
20# language/encoding specific stuff
[adb4c8d]21# any extra files for some programs, like: weights.kor, cats.dgc, gram.dgc, etc.
[b2647de]22export UTT_LANG_DIR=${UTT_DIR}/share/utt
23# some files like ser.l.template, terms.m4
24export UTT_LIB_DIR=${UTT_DIR}/lib/utt
25# stuff like documantation (man, info), docs: FAQ, COPYRIGHT, NEWS, README
26export UTT_SHARE_DIR=${UTT_DIR}/share
[25ae32e]27
[8d3e6ab]28##############################
[25ae32e]29
30# list of components to be included in the distribution
[10c74af]31COMPONENTS = compiledic cor dgp fla gph grp gue kon kor kot lem mar rm12 rs12 sen-l sen-nl ser tags tok.l unfla
[25ae32e]32
33##############################
34
[8d3e6ab]35# ------------------------------------------------------------------
36# sekcja kompilacji (kompiluje i wgrywa do OUTPUT_DIR)
37# ------------------------------------------------------------------
38.PHONY: compile
39compile: dirs components
40        @echo "Make compiled successfully!"
[25ae32e]41
42.PHONY: dirs
43dirs:
44        if [ -d ${UTT_DIR} ]; then rm -r ${UTT_DIR}; fi
45        mkdir -p ${UTT_DIR}
46        mkdir -p ${UTT_BIN_DIR}
47        mkdir -p ${UTT_CONF_DIR}
48        mkdir -p ${UTT_LANG_DIR}
[8d3e6ab]49        mkdir -p ${UTT_LIB_DIR}
[b2647de]50        mkdir -p ${UTT_SHARE_DIR}/utt
51        mkdir -p ${UTT_SHARE_DIR}/doc/utt
52        mkdir -p ${UTT_SHARE_DIR}/info
53        mkdir -p ${UTT_SHARE_DIR}/man/man3
[25ae32e]54
55.PHONY: components
[a6e708f]56components:
57        cd $(SRC_DIR)/lib && make; cd $(CUR_DIR)
58       
[25ae32e]59        @for cmp in $(COMPONENTS); do\
[8d3e6ab]60                cd $(SRC_DIR)/$$cmp && make && make copy; cd $(CUR_DIR); \
[25ae32e]61        done
62
63
[8d3e6ab]64# ------------------------------------------------------------------
65# sekcja sprzatania (kasuje binaria z katalogow SRC/COMPONENTS)
66# ------------------------------------------------------------------
67.PHONY: clean
[25ae32e]68clean: clean_components clean_doc clean_dist
69        @echo "All files cleaned successfully!"
70
[8d3e6ab]71.PHONY: clean_components
[25ae32e]72clean_components:
73        @for cmp in $(COMPONENTS); do \
[8d3e6ab]74                cd $(SRC_DIR)/$$cmp && make clean ; cd $(CUR_DIR); \
[25ae32e]75        done
[8d3e6ab]76        cd $(SRC_DIR)/lib && make clean; cd $(CUR_DIR);
[25ae32e]77
[8d3e6ab]78.PHONY: clean_doc
[25ae32e]79clean_doc:
[b2647de]80        cd $(CUR_DIR)/doc && make clean; cd $(CUR_DIR)
[8d3e6ab]81
82.PHONY: clean_dist
83clean_dist:
[a6e708f]84
[25ae32e]85
[8d3e6ab]86# ------------------------------------------------------------------
87# sekcja przygotowania paczki (programow wraz z dodatkowymi plikami)
88# ------------------------------------------------------------------
89.PHONY: build
[adb4c8d]90build: compile build_conf build_share build_lib build_doc
[8d3e6ab]91        @echo "All files builded successfully!"
[25ae32e]92
[8d3e6ab]93.PHONY: build_conf
94build_conf:
[b2647de]95        cp $(CUR_DIR)/conf/*.conf $(UTT_CONF_DIR)/
[25ae32e]96
[8d3e6ab]97.PHONY: build_lib
98build_lib:
99        cp $(CUR_DIR)/lib/* $(UTT_LIB_DIR)/
[25ae32e]100
[b2647de]101.PHONY: build_doc
102build_doc:
103        cd $(CUR_DIR)/doc && make && make copy; cd $(CUR_DIR)
[25ae32e]104
[adb4c8d]105.PHONY: build_share
106build_share:
107        cp $(CUR_DIR)/share/* $(UTT_LANG_DIR)/
[25ae32e]108
109
[8d3e6ab]110# ------------------------------------------------------------------
111# sekcja tworzenia dystrybucji (tarballa, rpm, deb)
112# ------------------------------------------------------------------
113.PHONY: distribute
[b2647de]114distribute: build dist_tarball dist_rpm
115        @echo "All distributions created successfully!"
[25ae32e]116
[b2647de]117.PHONY: dist_tarball
118dist_tarball: build
119        cd $(CUR_DIR)/dist && make tarball; cd $(CUR_DIR)
120
121.PHONY: dist_rpm
122dist_rpm: build
123        cd $(CUR_DIR)/dist && make rpm; cd $(CUR_DIR)
124
125.PHONY: dist_deb
126dist_deb: build
127        cd $(CUR_DIR)/dist && make deb; cd $(CUR_DIR)
[25ae32e]128
129
[8d3e6ab]130# ------------------------------------------------------------------
131# sekcja testowania (kasuje tarballa z TARBALL_TEST_DIR,
132# kompiluje, robi paczke,
133# tworzy tarballa i wgrywa go do TARBALL_TEST_DIR)
134# ------------------------------------------------------------------
135#install: all
136#       cd ${UTT_DIR} && make install; cd ${CUR_DIR}
[25ae32e]137
[8d3e6ab]138#uninstall:
139#       cd ${UTT_DIR} && make uninstall; cd ${DIR}
[25ae32e]140
[8d3e6ab]141#reinstall:
142#       cd ${UTT_DIR} && make reinstall; cd ${DIR}
[25ae32e]143
[8d3e6ab]144#dist: all
145#       tar -czvf $(UTT_DIST_NAME).tgz $(UTT_DIR)
[25ae32e]146
[a6e708f]147
[8d3e6ab]148#clean_dist:
149#       if [ -d $(UTT_DIST_DIR) ]; then rm -r $(UTT_DIST_DIR); else true; fi
150#       if [ -f $(UTT_DIST_FILE).tar.bz2 ]; then rm $(UTT_DIST_FILE).tar.bz2; else true; fi
151#       if [ -f $(UTT_DIST_PMDB_FILE).tar.bz2 ]; then rm $(UTT_DIST_PMDB_FILE).tar.bz2; else true; fi
Note: See TracBrowser for help on using the repository browser.