• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NMake Makefile snippet for copying the built libraries, utilities and headers to
2# a path under $(PREFIX).
3
4install: all libpsl.pc build-info
5	@if not exist $(PREFIX)\bin\ mkdir $(PREFIX)\bin
6	@if not exist $(PREFIX)\lib\pkgconfig\ mkdir $(PREFIX)\lib\pkgconfig
7	@if not exist $(PREFIX)\include @mkdir $(PREFIX)\include
8	@copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl.exe $(PREFIX)\bin
9	@copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl-tool.pdb $(PREFIX)\bin
10	@if "$(PSL_LIBTYPE)" == "DLL" copy /b $(PSL_DLL) $(PREFIX)\bin
11	@if "$(PSL_LIBTYPE)" == "DLL" copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl.pdb $(PREFIX)\bin
12	@copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl.lib $(PREFIX)\lib
13	@copy libpsl.pc $(PREFIX)\lib\pkgconfig
14	@for %h in (..\include\*.h) do @copy %h $(PREFIX)\include\%~nxh
15