File: Makefile.in

package info (click to toggle)
hdup 2.0.7-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 616 kB
  • ctags: 351
  • sloc: ansic: 3,461; sh: 2,743; perl: 218; makefile: 154
file content (62 lines) | stat: -rw-r--r-- 1,511 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
54
55
56
57
58
59
60
61
62
# Standard installation path names
VERSION		= @PACKAGE_VERSION@
# use by tar to package hdup
home	= $(shell pwd)
base	= $(shell basename ${home})
hdup2	= hdup2

.PHONY:	clean install all uninstall tar tarclean web doclean

all:	hdup Makefile

hdup:	
	@echo hdup version: ${VERSION}
	@(cd src ; $(MAKE) all)
	
clean: tarclean docclean
	@rm -f Makefile
	@rm -f config.log
	@rm -rf config.status
	@rm -rf autom4te.cache
	(cd src ; $(MAKE) clean)

tarclean:
	@echo -n "Removing .tar files..."
	@rm -f hdup*.tar.bz2
	@echo "done"

docclean:
	@echo -n "Removing web docs..."
	@rm -f doc/hdup.1.html doc/hdup.conf.5.html
	@rm -f doc/grohtml*.png
	@echo "done"

uninstall:
	@(cd src ; make uninstall )

install: 
	@(cd src ; make install )

tar:	hdup.tar.bz2

hdup.tar.bz2: src/hdup.c doc/hdup.1 doc/hdup.conf.5
	@echo "Generating tar.bz2..."
	@rm -f hdup*.tar.bz2
	@(cd src ; make clean)
	@(cd .. ; cp -Rap $(home) $(hdup2))
	@(cd .. ; /bin/tar --bzip2 --verbose --create --exclude-from=${hdup2}/tar-exclude \
	--exclude \*gz -f ${home}/hdup-${VERSION}.tar.bz2 ${hdup2}/* )
	@(cd .. ; rm -rf $(hdup2))
	@echo "done"

man2html: doc/hdup.1 doc/hdup.conf.5
	@(cd doc ; /usr/bin/groff -T html -mandoc hdup.1  > hdup.1.html)
	@(cd doc ; /usr/bin/groff -T html -mandoc hdup.conf.5  > hdup.conf.5.html)

web:	tar man2html
	@chmod 644 *.tar.bz2
	@chmod 644 ChangeLog doc/FAQ.html INSTALL Credits
	@chmod 644 doc/hdup.1.html doc/hdup.conf.5.html
	@chmod 644 doc/*.png
	@ln -sf hdup-*.tar.bz2 hdup.tar.bz2
	@md5sum hdup.tar.bz2