File: Makefile.mk

package info (click to toggle)
zziplib 0.13.56-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,760 kB
  • ctags: 2,135
  • sloc: sh: 12,147; ansic: 7,392; perl: 2,826; python: 2,190; makefile: 968; sed: 44
file content (107 lines) | stat: -rw-r--r-- 4,064 bytes parent folder | download | duplicates (2)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
PUB=pub/

auto:
	aclocal && autoconf && autoheader && automake

boottrap:
	rm -rf .deps .libs
	rm -f config.guess config.sub stamp-h.in
	rm -f install-sh ltconfig ltmain.sh depcomp mkinstalldirs
	rm -f config.h config.h.in config.log config.cache configure
	rm -f aclocal.m4 Makefile Makefile.in
	aclocal 
	autoconf 
	autoheader 
	automake -a -c 

rpm2: dist-bzip $(PACKAGE).spec
	rpmbuild -ta pub/$(PACKAGE)-$(VERSION).tar.bz2

dist-bzip : dist-bzip2
	$(MAKE) dist-bzip2-done
dist-bzip2-done dist-done :
	test -d $(PUB) || mkdir $(PUB)
	@ echo cp $(BUILD)/$(PACKAGE)-$(VERSION).tar.bz2 $(PUB). \
	;      cp $(BUILD)/$(PACKAGE)-$(VERSION).tar.bz2 $(PUB).
snapshot:
	$(MAKE) dist-bzip2 VERSION=`date +%Y.%m%d`
distclean-done:
	- rm -r *.d

configsub :
	cp ../savannah.config/config.guess uses/config.guess
	cp ../savannah.config/config.sub   uses/config.sub

cf = $(cf_fedora)
cf_debian = x86-linux1
cf_fedora = x86-linux2
cf_freebsd = x86-freebsd1
cf_netbsd = x86-netbsd1
cf_openbsd = x86-openbsd1
cf_amd64 = amd64-linux1
cf_alpha = usf-cf-alpha-linux-1
cf_powermac = ppc-osx3
cf_powerpc = openpower-linux1
cf_sparc = sparc-solaris1
cf_solaris = x86-solaris1
linux = $(cf_fedora)  $(cf_debian)   $(cf_amd64)   $(cf_powerpc)   $(cf_alpha) 
bsd =   $(cf_freebsd) $(cf_netbsd)   $(cf_openbsd) $(cf_powermac)
sun =   $(cf_sparc)   $(cf_solaris)
all = $(linux) $(sun) $(bsd)
list = all


_paths_ = export PATH=$$PATH:X/bin
_includes_ = CPPFLAGS=\"-IX/include -IX/include/ncurses\"
sparc-solaris1-gcc-path = $(subst X,/usr/local,$(_paths_));
x86-solaris1-gcc-path   = $(subst X,/usr/local,$(_paths_));
sparc-solaris1-cc-path  = $(subst X,/opt/SUNWspro,$(_paths_));
x86-solaris1-cc-path    = $(subst X,/opt/SUNWspro,$(_paths_));
sparc-solaris1-gcc-conf = $(subst X,/usr/local,$(_includes_));
x86-solaris1-gcc-conf   = $(subst X,/usr/local,$(_includes_));
sparc-solaris1-cc-conf  = $(subst X,/opt/SUNWspro,$(_includes_));
x86-solaris1-cc-conf    = $(subst X,/opt/SUNWspro,$(_includes_));
cf_compiler=gcc
cf_configure =    sh configure $($(cf)-$(cf_compiler)-conf) $(args)
cf_profile = $(cf_get_uname); $($(cf)-$(cf_compiler)-path)
cf_get_uname = uname -msr
cf_unpacked = $(PACKAGE)-$(VERSION)
cf : cf-upload cf-system-all
cf-upload: ;	scp $(PUB)$(PACKAGE)-$(VERSION).tar.bz2 cf-shell.sf.net:
cf-unpack: ; ssh cf-shell.sf.net \
	ssh $(cf) "'tar xjvf $(PACKAGE)-$(VERSION).tar.bz2 2>&1'"
cf-configure: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) cd $(cf_unpacked) && $(cf_configure) 2>&1'"
cf-build: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) cd $(cf_unpacked) && make 2>&1'"
cf-check: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) cd $(cf_unpacked) && make check 2>&1'"
cf-clean: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) cd $(cf_unpacked) && make clean 2>&1'"
cf-distclean: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) cd $(cf_unpacked) && rm -rf *.d 2>&1'"
cf-prep: dist cf-upload cf-unpack
cf-wipe: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) rm -rf $(cf_unpacked)/ 2>&1'"
cf-system: ; ssh cf-shell.sf.net \
	ssh $(cf) "'$(cf_profile) $(cf_get_uname) | sed \"s,^,: $(cf) = ,\"'"
cf-configure-all:
	echo $@: `date` "====================" > cf.log
	@ for cf in $($(list)) ; do echo $(MAKE) cf-configure cf=$$cf \
	; sleep 1;                       $(MAKE) cf-configure cf=$$cf \
	| sed -e "s|^|$$cf: |" | tee -a cf.log ; done
cf-build-all:
	echo $@: `date` "====================" >> cf.log
	@ for cf in $($(list)) ; do echo $(MAKE) cf-build cf=$$cf \
	; sleep 1;                       $(MAKE) cf-build cf=$$cf \
	| sed -e "s|^|$$cf: |" | tee -a cf.log ; done
cf-check-all:
	echo $@: `date` "====================" >> cf.log
	@ for cf in $($(list)) ; do echo $(MAKE) cf-check cf=$$cf \
	; sleep 1;                       $(MAKE) cf-check cf=$$cf \
	| sed -e "s|^|$$cf: |" | tee -a cf.log ; done
cf-system-all:
	echo $@: `date` "====================" >> cf.log
	@ for cf in $($(list)) ; do echo $(MAKE) cf-configure cf=$$cf \
	; sleep 1 ;                      $(MAKE) cf-system cf=$$cf \
	| sed -e "s|^|$$cf: |" | tee -a cf.log ; done