forked from SWI-Prolog/packages-pldoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.mak
57 lines (44 loc) · 1.25 KB
/
Makefile.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
################################################################
# Install the SWI-Prolog PlDoc package for MS-Windows
#
# Author: Jan Wielemaker
#
# Use:
# nmake /f Makefile.mak
# nmake /f Makefile.mak install
################################################################
PLHOME=..\..
!include $(PLHOME)\src\rules.mk
!include common.mk
LIBDIR= $(PLBASE)\library\pldoc
EXDIR= $(PKGDOC)\examples\pldoc
all: pldoc.sty
pldoc.sty: ..\..\man\pl.sty
copy ..\..\man\pl.sty $@
!IF "$(CFG)" == "rt"
install::
!ELSE
install::
if not exist "$(LIBDIR)/$(NULL)" $(MKDIR) "$(LIBDIR)"
@echo Copying $(LIBPL)
@for %f in ($(DOCALL)) do @copy %f "$(LIBDIR)"
copy README "$(LIBDIR)\README.TXT"
@for %f in ($(PUBPL)) do @copy %f "$(PLBASE)\library"
$(MAKEINDEX)
!ENDIF
html-install: install-examples
copy pldoc.html "$(PKGDOC)"
pdf-install: install-examples
copy pldoc.pdf "$(PKGDOC)"
install-examples::
if not exist "$(EXDIR)/$(NULL)" $(MKDIR) "$(EXDIR)"
cd server & @for %f in ($(EXAMPLES)) do @copy %f "$(EXDIR)"
cd server & copy $(EXAMPLEEXE).in "$(EXDIR)\$(EXAMPLEEXE)"
xpce-install::
uninstall::
cd $(LIBDIR) & del $(DOCALL) README.TXT
cd $(PLBASE)\library & del $(PUBPL)
$(MAKEINDEX)
clean::
if exist *~ del *~
distclean: clean