File: Makefile

package info (click to toggle)
sendfile 2.1-20.3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,304 kB
  • ctags: 695
  • sloc: ansic: 12,371; sh: 2,569; perl: 790; makefile: 136; java: 36
file content (53 lines) | stat: -rw-r--r-- 1,530 bytes parent folder | download
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
# Do not edit this file!
# It is autogenerated by "makeconfig" and will be overwritten next time!
# If you want to change some values, so do it in "makeconfig".

PROJECT=sendfile-2.1

all: develop/config.cache .
	cd src; make

install: develop/config.cache .
	sh develop/install 

userinstall: develop/config.cache .
	sh develop/userinstall

reinstall: develop/config.cache .
	sh develop/install  reinstall

config: 
	./makeconfig

develop/config.cache: makeconfig
	./makeconfig
	
clean:
	rm -f *~ */*~ sendfile-*tar.gz sendfile*zip 
	./makeconfig clean
	cd contrib/xhoppel; make clean
	cd develop; rm -f config.cache config.log
	cd src; make clean; rm -f config.h globals.h
	
wc:
	@cd src; wc -cl \
	  sendfile.c sendfiled.c sendmsg.c receive.c utf7encode.c fetchfile.c \
	  string.[ch] utf7.[ch] pstring.[ch] message.[ch] peername.[ch] \
	  io.[ch] net.[ch] address.[ch] spool.[ch] reply.[ch] getline.[ch] \
	  lock.[ch] getdate.c snprintf.c wlock.c bsd.h usd \
	  ../develop/install ../makeconfig ../etc/check_sendfile \
	  ../etc/sf_cleanup ../etc/sfconf ../etc/sfdconf ../etc/sendfile.cf

dist: clean
	@mkdir $(PROJECT)
	@tar cf - `cat develop/FILES` | (cd $(PROJECT); tar xf - )
	tar cvf - $(PROJECT) | gzip > $(PROJECT).tar.gz
	@zip -r $(PROJECT).zip $(PROJECT)
	@rm -rf $(PROJECT)
	@ls -l $(PROJECT).tar.gz $(PROJECT).zip

floppy: clean
	cd ..; tar cvzf /dev/fd0 $(PROJECT)
	@cd ..; tar czf /tmp/sf.tgz $(PROJECT)
	@echo "insert a new disk and press enter"; read dummy
	mformat a:; mcopy /tmp/sf.tgz a:; rm -f /tmp/sf.tgz