File: Makefile

package info (click to toggle)
unixcw 2.3-13
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,340 kB
  • ctags: 897
  • sloc: ansic: 7,476; sh: 3,229; cpp: 1,628; makefile: 401; awk: 245
file content (58 lines) | stat: -rw-r--r-- 1,831 bytes parent folder | download | duplicates (3)
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
# vi: set ts=8 shiftwidth=8:
#
# Copyright (C) 2001-2006  Simon Baldwin (simon_baldwin@yahoo.com)
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
#

include Makefile.inc

SHELL	= /bin/sh
SUBDIRS	= src

DIST	= unixcw-2.3

# Top level makefile - descends into subdirectories and executes the make in
# these one at a time.

# Macro to support descending into selected subdirectories.
DESCEND	= for subdir in $(SUBDIRS); do				\
		( cd $$subdir; $(MAKE) $@ );			\
	  done

# Targets that do nothing other than descend.
all install install-strip uninstall clean TAGS info dvi check:
	$(DESCEND)

# Targets that do just a little more than this.
distclean mostlyclean:
	$(DESCEND)
	rm -f $(DIST).tar $(DIST).tar.gz $(DIST).tgz
	rm -f Makefile.inc src/config.h src/config.h.in~
	rm -f config.status config.cache config.log
	rm -rf autom4te.cache

maintainer-clean: distclean
	rm -f configure src/config.h.in aclocal.m4 configure.scan autoscan.log
	rm -f po/UnixCW.po
	-rmdir po

dist:	distclean
	rm -f $(DIST).tar $(DIST).tar.gz $(DIST).tgz
	rm -f $(DIST); ln -s . $(DIST)
	FILES="`ls -d $(DIST)/* | grep -v '^$(DIST)/$(DIST)$$'`";	\
		tar zcvf $(DIST).tgz $$FILES
	rm $(DIST)