File: Makefile.bin.in

package info (click to toggle)
ncftp 2%3A3.2.5-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,376 kB
  • ctags: 3,358
  • sloc: ansic: 39,640; sh: 3,560; makefile: 897; cpp: 612; perl: 101
file content (38 lines) | stat: -rw-r--r-- 1,531 bytes parent folder | download | duplicates (11)
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
#-----------------------------------------------------------------------------
#
# NcFTP binary distribution makefile 
#
#-----------------------------------------------------------------------------

SHELL=/bin/sh
prefix=@prefix@
mandir=@mandir@

all:
	-@echo "Try \"make install\" to install the package into the $(prefix) hierarchy."

install:
	-@echo '..... Installing the programs .....'
	-mkdir $(prefix)/bin $(mandir) $(mandir)/man1 2>/dev/null
	-for f in ncftp ncftpget ncftpput ncftpbatch ncftpspooler ncftpls ; do \
		/bin/rm -f $(prefix)/bin/$$f ; \
		cp bin/$$f $(prefix)/bin/$$f ; \
		chmod 755 $(prefix)/bin/$$f ; \
		chown bin $(prefix)/bin/$$f 2>/dev/null ; \
		chgrp bin $(prefix)/bin/$$f 2>/dev/null ; \
		: ; \
	done
	-@/bin/rm -f $(prefix)/bin/ncftpspooler
	-ln $(prefix)/bin/ncftpbatch $(prefix)/bin/ncftpspooler
	-@cp bin/ncftpbookmarks $(prefix)/bin/ncftpbookmarks 2>/dev/null
	-@chmod 755 $(prefix)/bin/ncftpbookmarks 2>/dev/null
	-@chown bin $(prefix)/bin/ncftpbookmarks 2>/dev/null
	-@chgrp bin $(prefix)/bin/ncftpbookmarks 2>/dev/null
	-@/bin/ls -l $(prefix)/bin/ncftp $(prefix)/bin/ncftpget $(prefix)/bin/ncftpput $(prefix)/bin/ncftpbatch $(prefix)/bin/ncftpspooler $(prefix)/bin/ncftpls $(prefix)/bin/ncftpbookmarks
	-@echo '..... Installing the manual pages .....'
	for f in ncftp.1 ncftpget.1 ncftpput.1 ncftpbatch.1 ncftpspooler.1  ncftpls.1 ; do \
		/bin/rm -f $(mandir)/man1/$$f ; \
		cp doc/man/$$f $(mandir)/man1/$$f ; \
		chmod 644 $(mandir)/man1/$$f ; \
	done
	-@echo 'Done installing NcFTP.'