File: Makefile

package info (click to toggle)
claws-mail-extra-plugins 3.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 47,352 kB
  • sloc: ansic: 100,073; sh: 20,031; makefile: 6,918; perl: 990; yacc: 219; lex: 168
file content (57 lines) | stat: -rw-r--r-- 1,472 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
49
50
51
52
53
54
55
56
57
#
# Makefile for building all plugins in a predefined set
#
# Copyright (C) 2006 by Ricardo Mones <mones@debian.org>
#
# You are free to distribute this software under the terms of
# the GNU General Public License.
# 

TOBEBUILT := $(shell /bin/bash ./configure --get-plugin-list)

all:
	touch all-mark;
	for plugin in $(TOBEBUILT); \
	do cd $$plugin && \
	   echo "*** Building $$plugin " && \
	   $(MAKE) && \
	   cd .. || break; \
	done && test -f all-mark && rm -f all-mark;

install:
	touch install-mark;
	for plugin in $(TOBEBUILT); \
	do cd $$plugin && \
	   echo "*** Installing $$plugin " && \
	   $(MAKE) install DESTDIR=$(DESTDIR)/$$plugin && \
	   cd .. || break; \
	done && test -f install-mark && rm -f install-mark;

uninstall:
	touch uninstall-mark;
	for plugin in $(TOBEBUILT); \
	do cd $$plugin && \
	   echo "*** Uninstalling $$plugin " && \
	   $(MAKE) uninstall && \
	   cd .. || break; \
	done && test -f uninstall-mark && rm -f uninstall-mark;

clean:
	touch clean-mark;
	for plugin in $(TOBEBUILT); \
	do cd $$plugin && \
	   echo "*** Cleaning $$plugin " && \
	   $(MAKE) clean && \
	   cd .. || break; \
	done && test -f clean-mark && rm -f clean-mark;

distclean:
	touch distclean-mark;
	for plugin in $(TOBEBUILT); \
	do cd $$plugin && \
	   echo "*** Distcleaning $$plugin " && \
	   $(MAKE) distclean && \
	   cd .. || break; \
	done && test -f distclean-mark && rm -f distclean-mark;

.PHONY: all install uninstall clean distclean all-built