File: Makefile

package info (click to toggle)
ysmv7 2.9.9-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,356 kB
  • ctags: 2,317
  • sloc: ansic: 21,938; sh: 174; makefile: 127; perl: 42
file content (48 lines) | stat: -rw-r--r-- 1,242 bytes parent folder | download | duplicates (4)
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
#
# YSM _ You Sick Me _ ICQ Client Makefile.
# Leave automake alone, we can do the job!
#

YSM_VERSION=		2_9_3
SUBDIRS=		src src/man
INSTALL_SUBDIRS=	src/man src 
RELEASE=		ysmv7_${YSM_VERSION}
TARBALL=		${RELEASE}-src.tar.gz


all: all-recursive

all-recursive clean-recursive distclean-recursive:
	@target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; \
	for subdir in $$list; do \
		(cd $$subdir && exec $(MAKE) $$target) \
	done

install-recursive:
	@target=`echo $@ | sed s/-recursive//`; \
	list='$(INSTALL_SUBDIRS)'; \
	for subdir in $$list; do \
		(cd $$subdir && exec $(MAKE) $$target) \
	done

uninstall-recursive:
	@target=`echo $@ | sed s/-recursive//`; \
	list='$(INSTALL_SUBDIRS)'; \
	for subdir in $$list; do \
		(cd $$subdir && exec $(MAKE) $$target) \
	done

.PHONY: clean distclean install
clean: clean-recursive
install: all install-recursive
uninstall: uninstall-recursive

distclean: distclean-recursive
	-rm -f Makefile config.cache config.log config.status

dist distribution: cleandist
	@DIR=`pwd` && cd .. && tar -z -c -s '/$$DIR/${RELEASE}/' \
	    -f $$DIR/${TARBALL} \
	    `find $$DIR -type f -print | egrep -v "ports|CVS|*gz"` && \   
	    cd - && echo "Distribution file ${TARBALL} has been created."