Makefile 1.2 KB
Newer Older
1
include Makefile.distrib
2

3 4
# For development

5 6
pull: tools/pull.$(EXTENSION)
	$(LINK) -o $@ $^
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

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/
22
	(cd prepro;  make cduce PROFILE=true SYNTAX_PARSER= NATIVE=false)
23

24
# Site-specific installation
25 26

cedre_build:
27
	rsh cedre ". .env; cd IMPLEM/CDUCE; make webiface; make web/files"
28
install_web:
29
	scp web/www/*.php web/cduce.css cduce@iris:public_html/
30
	scp webiface cduce@iris:cgi-bin/cduce
31 32 33
	ssh cduce@iris "chmod +s cgi-bin/cduce"

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

36

37
# Packaging
38

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

41
PACKAGE = cduce-$(VERSION)
42 43
.PHONY: package
package:
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 ".#*" --exclude IDEAS $(PACKAGE)
52 53
	rm -Rf $(PACKAGE)

54