Makefile 1.22 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
	rsh cedre ". .env; cd IMPLEM/CDUCE; make webiface; make web/files"
30
install_web:
31
	scp web/www/*.php web/cduce.css cduce@iris:public_html/
32
	scp webiface cduce@iris:cgi-bin/cduce
33
34
35
	ssh cduce@iris "chmod +s cgi-bin/cduce"

website: web/files
36
	scp web/www/*.php web/cduce.css cduce@iris.ens.fr:public_html/
37

38

39
# Packaging
40

41
DISTRIB = $(DIRS) tools web depend INSTALL INSTALL.WIN32 CHANGES LICENSE README doc
42

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

56