forked from cnangel/libchardet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
30 lines (23 loc) · 934 Bytes
/
Makefile.am
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
# $Id: Makefile.am,v 1.0.0-0 2011/03/03 13:28:14 Cnangel Exp $
AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = autogen.sh \
libchardet.spec \
.gitignore \
$(NULL)
SUBDIRS = src \
pkgconfig \
$(NULL)
# install libchardet.pc
pcdatadir = $(libdir)/pkgconfig
pcdata_DATA = pkgconfig/@[email protected] \
$(NULL)
# define rpm build root
RPMBUILDTOPDIR = $(shell unset RPMBUILDTOPDIR; if [ -f ${HOME}/.rpmmacros ]; then export RPMBUILDTOPDIR=`grep _topdir ${HOME}/.rpmmacros|awk '{print $$2}'`; else export RPMBUILDTOPDIR=/usr/src/redhat; fi; echo $${RPMBUILDTOPDIR};)
.PHONY: rpm
rpm: dist @[email protected]
$(RM) ${RPMBUILDTOPDIR}/SOURCES/$(distdir).tar.gz
$(RM) ${RPMBUILDTOPDIR}/SPECS/@[email protected]
$(LN_S) `pwd`/$(distdir).tar.gz ${RPMBUILDTOPDIR}/SOURCES
$(LN_S) `pwd`/@[email protected] ${RPMBUILDTOPDIR}/SPECS
rpmbuild -ba ${RPMBUILDTOPDIR}/SPECS/@[email protected]
CLEANFILES = *~ *.log *.tar.gz