File: Makefile.in

package info (click to toggle)
xpcd 2.04-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 624 kB
  • ctags: 556
  • sloc: ansic: 6,313; makefile: 217; sh: 200; perl: 12
file content (70 lines) | stat: -rw-r--r-- 1,902 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
66
67
68
69
70
####################################################################
#
# Makefile for xpcd-2.0 package
#

srcdir=@srcdir@
VPATH=$(srcdir)
DIR=$(shell basename `pwd`)

include Make.config

# rpm tricks: install to /tmp/rpmify for package build, create packages
#             with suid-binaries without root priviliges _and_ use the
#             normal "make install" for that...
BUILD_ROOT=
SUID_ROOT=-o 0 -g 0 -m 4711
rpmify=@rpm_topdir@
rpmarch=@rpm_build_arch@
rpmbuild=/tmp/rpmify

MAKE=make BUILD_ROOT="$(BUILD_ROOT)" SUID_ROOT="$(SUID_ROOT)"

##########################################################################

SUBDIRS=libpcd xpcd test

all dep depend clean install:
	set -e; for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@); done

realclean: clean
	set -e; for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@); done
	rm -f config.h config.cache config.status config.log
	rm -f Make.config Makefile *~
	rm -f xpcd*.tar.gz xpcd*.rpm xpcd*.spec
	echo -e 'default:\n\t./configure --prefix=/usr&&make' >Makefile

try:
	(cd xpcd; make try)

##########################################################################
# just for me...

INDENT_OPTS=-npro -kr -di16 -psl -bad -bap -sob -d0

autoconf:
	autoconf&&autoheader
	sed -e 's/char gimp_image_new();/char gimp_image_new();int PLUG_IN_INFO;/' < configure > x; mv x configure; chmod 755 configure
	make realclean
	./configure

tar: realclean
	find . -print | xargs chmod go-w
	find . -print | xargs chmod a+r
	(cd ..; tar czf $(DIR).tar.gz $(DIR))
	mv ../$(DIR).tar.gz .

rpm:
	cp xpcd.spec $(rpmify)/SPECS/$(DIR).spec
	make tar
	cp $(DIR).tar.gz $(rpmify)/SOURCES
	$(RPM) -ba --clean --buildroot $(rpmbuild) \
		$(rpmify)/SPECS/$(DIR).spec
	rm -rf $(rpmbuild)
#	cp $(rpmify)/RPMS/$(rpmarch)/xpcd*.rpm .
#	cp $(rpmify)/SRPMS/xpcd*.src.rpm .
#	echo -e \\007; rpm --resign *.rpm

indent:
	find . -name \*.[ch] -print | xargs indent $(INDENT_OPTS)