File: Makefile.am

package info (click to toggle)
ssbd 0.10-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 784 kB
  • ctags: 250
  • sloc: sh: 3,538; ansic: 1,817; makefile: 116; perl: 24
file content (65 lines) | stat: -rw-r--r-- 1,758 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
63
64
65
SUBDIRS=doc src 

MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in stamp-h.in

EXTRA_DIST = TODO acconfig.h rebuild debian/* pkg/*

stamp = `date +%Y%m%d_%H%M%S`

distd: dist
#	echo $(distdir)
#	mv $(distdir).tar.gz $(distdir).tar.gz

bin: all
	rm -rf $(distdir)
	mkdir $(distdir)
	make DESTDIR=$(PWD)/$(distdir) install    
	tar c $(distdir) | gzip -9 > $(distdir)-`uname -m`-`uname -s`.tar.gz

bobup:
	RSYNC_PASSWORD="" rsync -avuz . ziav@bob::ziav/c/tucnak

nagup:
	rsync -vz ssbd*.tar.gz ssbd*.rpm pkg/ssbd*.ebuild ok1zia@nagano.cz::ok1zia/public_html/ssbd/
       


specfile=$(top_srcdir)/pkg/ssbd.spec 
RPM_SOURCESDIR=@RPM_SOURCESDIR@

ver:
	@echo $(VERSION)

deb:
	dpkg-buildpackage -rfakeroot -us -uc -tc 
	mv ../$(PACKAGE)_$(VERSION)* .

rpm: dist
	if test x$(HAVE_RPM_PACKAGING) = xyes ; then \
	cp $(top_srcdir)/$(distdir).tar.gz $(RPM_SOURCESDIR) ; \
	rpmbuild -bb --clean --rmsource $(specfile) ; \
	mv $(RPM_SOURCESDIR)/../RPMS/*/$(distdir)-1$(RPM_RELEASE)*.rpm . ; \
	else \
	echo "Error: RPM executable and/or source directory not found." ; \
	echo "Package build abandoned." ; \
	fi
                                                                                
srpm: dist
	if test x$(HAVE_RPM_PACKAGING) = xyes ; then \
	cp $(top_srcdir)/$(distdir).tar.gz $(RPM_SOURCESDIR) ; \
	rpmbuild -bs --clean --rmsource $(specfile) ; \
	mv $(RPM_SOURCESDIR)/../SRPMS/$(distdir)-1$(RPM_RELEASE).src.rpm . ;\
	else \
	echo "Error: RPM executable and/or source directory not found." ;\
	echo "Package build abandoned." ; \
	fi

contura: all
	RSYNC_PASSWORD="" rsync -avvz src/ssbd root@contura::root/usr/bin

krq: all
	RSYNC_PASSWORD="" rsync -avvz src/ssbd root@ok1krq::root/usr/local/bin
	
lines:
	cat src/*.c src/*.h | wc -l