This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/sgml/Makefile.mak
2009-03-13 19:39:06 +00:00

80 lines
1.8 KiB
Makefile

################################################################
# Build the SWI-Prolog XML/SGML package for MS-Windows
#
# Author: Jan Wielemaker
#
# Use:
# nmake /f Makefile.mak
# nmake /f Makefile.mak install
################################################################
PLHOME=..\..
!include ..\..\src\rules.mk
PKGDLL=sgml2pl
LIBOBJ= parser.obj util.obj charmap.obj catalog.obj \
model.obj xmlns.obj utf8.obj xml_unicode.obj
OBJ= $(LIBOBJ) sgml2pl.obj error.obj quote.obj
SGMLOBJ= $(LIBOBJ) sgml.obj
DTDFILES= HTML4.dcl HTML4.dtd HTML4.soc \
HTMLlat1.ent HTMLspec.ent HTMLsym.ent
DTDDIR= $(PLBASE)\library\DTD
all: $(PKGDLL).dll
$(PKGDLL).dll: $(OBJ)
$(LD) /dll /out:$@ $(LDFLAGS) $(OBJ) $(PLLIB) $(LIBS)
sgml.exe: $(SGMLOBJ)
$(LD) $(LDFLAGS) /out:$@ $(SGMLOBJ) $(LIBS)
!IF "$(CFG)" == "rt"
install: idll
!ELSE
install: idtd idll ilib
!ENDIF
idll::
copy $(PKGDLL).dll "$(PLBASE)\bin"
!IF "$(PDB)" == "true"
copy $(PKGDLL).pdb "$(PLBASE)\bin"
!ENDIF
ilib::
copy sgml.pl "$(PLBASE)\library"
copy xsdp_types.pl "$(PLBASE)\library"
copy iso_639.pl "$(PLBASE)\library"
copy sgml_write.pl "$(PLBASE)\library"
$(MAKEINDEX)
idtd::
@if not exist "$(DTDDIR)\$(NULL)" $(MKDIR) "$(DTDDIR)"
@echo "Installing DTD files in $(DTDDIR)"
@for %f in ($(DTDFILES)) do \
@copy DTD\%f "$(DTDDIR)"
@echo "done"
uninstall::
del "$(PLBASE)\bin\$(PKGDLL).dll"
del "$(PLBASE)\library\sgml.pl"
del "$(PLBASE)\library\xsdp_types.pl"
del "$(PLBASE)\library\iso_639.pl"
del "$(PLBASE)\library\sgml_write.pl"
$(MAKEINDEX)
html-install::
copy sgml.html "$(PKGDOC)"
xpce-install::
check::
cd Test && "$(PLCON)" -f test.pl -g test,halt.
clean::
if exist *.obj del *.obj
if exist *~ del *~
distclean: clean
-DEL *.dll *.lib *.exp *.pdb *.ilk 2>nul