File: Makefile.am

package info (click to toggle)
owfs 2.8p15-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,460 kB
  • sloc: ansic: 56,355; sh: 11,666; tcl: 1,962; makefile: 1,163; python: 1,114; php: 600; perl: 393; cpp: 105
file content (39 lines) | stat: -rw-r--r-- 1,062 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
SUBDIRS = src module
RPMMACROS = ${HOME}/.rpmmacros
RPMDIR = ${HOME}/.rpm

EXTRA_DIST = bootstrap acx_pthread.m4

clean-generic:

	@RM@ -f *~ .*~

distclean-generic:

	@RM@ -rf auto*cache

preparerpm: dist

	@ if @TEST@ -z "@RPMBUILD@" ; then \
	    @ECHO@ "RPMBUILD binary not found, can't build RPM package"; \
	    exit 1; \
	fi
	if @TEST@ ! -f ${RPMMACROS} ; then \
	    @ECHO@ "%_topdir ${RPMDIR}" > ${RPMMACROS}; \
	    mkdir -p ${RPMDIR}/SOURCES \
	             ${RPMDIR}/SPECS \
	             ${RPMDIR}/BUILD \
	             ${RPMDIR}/RPMS/i386 \
	             ${RPMDIR}/SRPMS ; \
	fi
	cd src/rpm && ${MAKE} @PACKAGE@.spec
	@LN_S@ -f `pwd`/src/rpm/@PACKAGE@.spec ${RPMDIR}/SPECS/@PACKAGE@.spec

rpm: preparerpm
	@LN_S@ -f `pwd`/@PACKAGE@-@VERSION@.tar.gz ${RPMDIR}/SOURCES/@PACKAGE@-@VERSION@.tar.gz
	cd ${RPMDIR}/SPECS && @RPMBUILD@ -ba @PACKAGE@.spec

rpmcvs: preparerpm
	@LN_S@ -f `pwd`/@PACKAGE@-@VERSION@.tar.gz ${RPMDIR}/SOURCES/@PACKAGE@-@VERSION@_cvs_`date +"%Y%m%d"`.tar.gz
	cd ${RPMDIR}/SPECS && @RPMBUILD@ -ba @PACKAGE@.spec --define 'cvs 1'