Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (37 sloc) 1.49 KB
###########################################################################
## ##
## OCamlClean ##
## ##
## Benoit Vaugon, Université Pierre et Marie Curie ##
## ##
## Ce fichier est distribué sous les termes de la licence CeCILL-B ##
## décrite dans le fichier LICENCE. ##
## ##
###########################################################################
include etc/Makefile.conf
all: config
$(call compile, src)
config:
@if [ $(ETC)/Makefile.conf -ot VERSION -o \
$(ETC)/Makefile.conf -ot configure ]; then \
echo 'Configuration files are not up to date.' 1>&2; \
echo 'Please run `./configure` (with right options).' 1>&2; \
exit 1; \
fi
install: all
mkdir -p "$(BINDIR)"
mkdir -p "$(MANDIR)"
cp bin/ocamlclean "$(BINDIR)/ocamlclean"
cp man/ocamlclean.1.gz "$(MANDIR)/ocamlclean.1.gz"
uninstall:
-rm -f "$(BINDIR)/ocamlclean"
-rm -f "$(MANDIR)/ocamlclean.1.gz"
etc/Makefile.conf:
@echo "You must run ./configure before" 1>&2
@exit 1
dist: clean
dist/distgen
clean:
@rm -f *~ */*~ */*/*~
$(call clean, src)
.PHONY: all config install uninstall dist clean