/[svn]/Makefile.distrib
ViewVC logotype

Diff of /Makefile.distrib

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 752 by abate, Tue Jul 10 18:00:49 2007 UTC revision 765 by abate, Tue Jul 10 18:01:39 2007 UTC
# Line 1  Line 1 
1  include Makefile.conf  include Makefile.conf
2  VERSION = 0.2.0-pre1  VERSION = 0.2.0-pre1
3    NAME = cduce
4    
5  PACKAGES = pxp-engine pxp-lex-iso88591 ulex camlp4 num cgi pcre netstring  PACKAGES = pxp-engine pxp-lex-iso88591 ulex camlp4 num cgi pcre netstring
6  ifeq ($(PXP_WLEX), true)  ifeq ($(PXP_WLEX), true)
# Line 8  Line 9 
9    PACKAGES += pxp-lex-utf8    PACKAGES += pxp-lex-utf8
10  endif  endif
11    
12    #
13    # Check if running Cygwin
14    #
15    
16    ifneq (,$(findstring Cygwin, $(shell echo "let _ = Sys.os_type" | ocaml)))
17        EXE=.exe
18    else
19        EXE=
20    endif
21    
22    
23  SYNTAX = -I misc/ q_symbol.cmo \  SYNTAX = -I misc/ q_symbol.cmo \
24    -symbol cduce_version=\"$(VERSION)\" \    -symbol cduce_version=\"$(VERSION)\" \
25    -symbol build_date=\"$(shell date +%Y-%m-%d)\" \    -symbol build_date=\"$(shell date +%Y-%m-%d)\" \
# Line 60  Line 72 
72          LINK = $(CAMLC) -custom -linkpkg gramlib.cma          LINK = $(CAMLC) -custom -linkpkg gramlib.cma
73  endif  endif
74    
75    INSTALL := $(shell which install)
76    
77    
78    
79  all: cduce dtd2cduce validate  all: cduce dtd2cduce validate
80    
81  install: all  install: all
82          mkdir -p $(PREFIX)/bin/          mkdir -p $(PREFIX)/bin/
83          mkdir -p $(PREFIX)/man/man1/          mkdir -p $(PREFIX)/man/man1/
84          install -m755 cduce dtd2cduce $(PREFIX)/bin/          $(INSTALL) -m755 cduce$(EXE) dtd2cduce$(EXE) $(PREFIX)/bin/
85          install -m644 doc/cduce.1 $(PREFIX)/man/man1/          $(INSTALL) -m644 doc/cduce.1 $(PREFIX)/man/man1/
86    
87  uninstall:  uninstall:
88          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
89    
90  # Source directories  # Source directories
91    

Legend:
Removed from v.752  
changed lines
  Added in v.765

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5