Makefile 1.21 KB
Newer Older
1
include Makefile.distrib
2

3
4
# For development

5
6
pull: tools/pull.$(EXTENSION)
	$(LINK) -o $@ $^
7

8
9
PREPRO = $(SYNTAX) pr_o.cmo

10
11
12
13
14
15
16
17
18
19
20
21
22
23
profile:
	rm -Rf prepro
	mkdir prepro
	for i in $(DIRS); do \
	mkdir prepro/$$i; \
	for j in $$i/*.ml $$i/*.mli; do \
	if [ -f "$$j" ]; then \
	 echo $$j; \
	 $(PREPRO) $$j -o prepro/$$j; \
	fi; \
	done; \
	done
	cp parser/wlexer.mll prepro/parser/
	cp Makefile depend prepro/
24
	(cd prepro;  make cduce PROFILE=true SYNTAX_PARSER= NATIVE=false)
25

26
# Site-specific installation
27
28

cedre_build:
29
30
	rsh cedre ". .env; cd IMPLEM/CDUCE; make webiface webpages"
	scp CHANGES web/www/*.html web/cduce.css cduce@iris:public_html/
31
	scp webiface cduce@iris:cgi-bin/cduce
32

33
install_web_distant:
34
35
	make webpages
	scp CHANGES web/www/*.html web/cduce.css cduce@iris:public_html/
36

37
# Packaging
38

39
DISTRIB = $(DIRS) cduce.spec expat tools web depend INSTALL INSTALL.WIN32 CHANGES LICENSE README Makefile.conf doc
40

41
PACKAGE = cduce-$(VERSION)
42
.PHONY: package
43
package: clean
44
45
46
47
48
49
50
	rm -Rf $(PACKAGE)
	mkdir $(PACKAGE)
	cp -R $(DISTRIB) $(PACKAGE)/
	cp Makefile.distrib $(PACKAGE)/Makefile
	(cd $(PACKAGE); \
	rm -f types/IDEAS; \
	headache -h ../header $(DEPEND))
51
	tar czf $(PACKAGE).tar.gz --exclude CVS --exclude ".#*" $(PACKAGE)
52
53
	rm -Rf $(PACKAGE)

54