Commit d482f239 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2003-11-16 22:32:37 by beppe] Modified to take into account Cygwin

Original author: beppe
Date: 2003-11-16 22:32:37+00:00
parent ff0b6af7
include Makefile.conf
VERSION = 0.2.0-pre1
NAME = cduce
PACKAGES = pxp-engine pxp-lex-iso88591 ulex camlp4 num cgi pcre netstring
ifeq ($(PXP_WLEX), true)
......@@ -8,6 +9,17 @@ else
PACKAGES += pxp-lex-utf8
endif
#
# Check if running Cygwin
#
ifneq (,$(findstring Cygwin, $(shell echo "let _ = Sys.os_type" | ocaml)))
EXE=.exe
else
EXE=
endif
SYNTAX = -I misc/ q_symbol.cmo \
-symbol cduce_version=\"$(VERSION)\" \
-symbol build_date=\"$(shell date +%Y-%m-%d)\" \
......@@ -60,16 +72,20 @@ else
LINK = $(CAMLC) -custom -linkpkg gramlib.cma
endif
INSTALL := $(shell which install)
all: cduce dtd2cduce validate
install: all
mkdir -p $(PREFIX)/bin/
mkdir -p $(PREFIX)/man/man1/
install -m755 cduce dtd2cduce $(PREFIX)/bin/
install -m644 doc/cduce.1 $(PREFIX)/man/man1/
$(INSTALL) -m755 cduce$(EXE) dtd2cduce$(EXE) $(PREFIX)/bin/
$(INSTALL) -m644 doc/cduce.1 $(PREFIX)/man/man1/
uninstall:
rm $(PREFIX)/bin/cduce $(PREFIX)/bin/dtd2cduce $(PREFIX)/man/man1/cduce.1
rm $(PREFIX)/bin/cduce$(EXE) $(PREFIX)/bin/dtd2cduce$(EXE) $(PREFIX)/man/man1/cduce.1
# Source directories
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment