EXCLUDE=$(PACKAGE)/debian .depend
+DOC=docs/manual/manual.pdf \
+ docs/manual/options.pdf \
+ docs/manual/main_grammar.pdf \
+ docs/html \
+ docs/man \
+ docs/spatch.1 \
+ docs/manual/cocci-python.txt
BINSRC=spatch env.sh env.csh standard.h standard.iso \
- *.txt \
- docs/manual/manual.pdf docs/manual/options.pdf docs/manual/main_grammar.pdf docs/spatch.1 \
- docs/manual/cocci-python.txt \
- demos/*
+ *.txt $(DOC) demos/*
BINSRC-PY=$(BINSRC) $(PYLIB) python/coccilib/
EXCL=$(EXCLUDE:%=--exclude=%)
package-nopython:
$(MAKE) distclean # Clean project
./configure --without-python
- $(MAKE) docs
$(MAKE) bintar
$(MAKE) bytecodetar
# $(MAKE) staticbintar
package-python:
$(MAKE) distclean # Clean project
./configure # Reconfigure project with Python support
- $(MAKE) docs
$(MAKE) bintar-python
$(MAKE) bytecodetar-python
# make clean is there to remove them while not removing the pdf
# (only distclean remove the pdfs).
srctar:
- $(MAKE) distclean
$(MAKE) docs
$(MAKE) clean
cp -a . $(TMP)/$(PACKAGE)
rm -rf $(TMP)/$(PACKAGE)
bintar: all
+ $(MAKE) docs
rm -f $(TMP)/$(PACKAGE)
ln -s `pwd` $(TMP)/$(PACKAGE)
cd $(TMP); tar cvfz $(PACKAGE)-bin-x86.tgz --exclude-vcs $(BINSRC2)
rm -f $(TMP)/$(PACKAGE)
staticbintar: all.opt
+ $(MAKE) docs
rm -f $(TMP)/$(PACKAGE)
ln -s `pwd` $(TMP)/$(PACKAGE)
$(MAKE) static
# add ocaml version in name ?
bytecodetar: all
+ $(MAKE) docs
rm -f $(TMP)/$(PACKAGE)
ln -s `pwd` $(TMP)/$(PACKAGE)
$(MAKE) purebytecode
rm -f $(TMP)/$(PACKAGE)
bintar-python: all
+ $(MAKE) docs
rm -f $(TMP)/$(PACKAGE)
ln -s `pwd` $(TMP)/$(PACKAGE)
cd $(TMP); tar cvfz $(PACKAGE)-bin-x86-python.tgz --exclude-vcs $(BINSRC2-PY)
# add ocaml version in name ?
bytecodetar-python: all
+ $(MAKE) docs
rm -f $(TMP)/$(PACKAGE)
ln -s `pwd` $(TMP)/$(PACKAGE)
$(MAKE) purebytecode