File: Makefile

package info (click to toggle)
aca 0.1.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 569
  • sloc: ansic: 4,254; sh: 2,237; makefile: 256
file content (94 lines) | stat: -rw-r--r-- 1,550 bytes parent folder | download | duplicates (2)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94

#
#  Copyright (c) 1998 - 1999, 2001 Karel Zak "Zakkr" <zakkr@zf.jcu.cz>
#
#  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.
#
#  $Id: Makefile,v 1.3 2001/01/02 14:16:15 zakkr Exp $
#

TOPDIR =.
include $(TOPDIR)/Makeconf

DIRS_SRC	= po \
		  draw\
		  utils\
		  widgets\
		  char\
		  dialogs


all: obj target 

example: target
	cd Examples;\
	$(MAKE) all || exit 1;\
	cd ..;

target: obj
	cd Share-lib;\
	$(MAKE) all || exit 1;\
	cd ..;

obj: 
	@for dir in ${DIRS_SRC}; do \
		cd $$dir; \
		${MAKE} all || exit 1; \
		cd .. ; \
	done


install: install-lib install-include install-locales
	
install-lib: 
	cd Share-lib;\
	$(MAKE) install || exit 1;\
	cd ..;

install-locales:
	cd po;\
	$(MAKE) install || exit 1;\
	cd ..;

install-include:
	cd include;\
	$(MAKE) install || exit 1;\
	cd ..;

uninstall: uninstall-lib uninstall-include
	
uninstall-lib: 
	cd Share-lib;\
	$(MAKE) uninstall || exit 1;\
	cd ..;

uninstall-include:
	cd include;\
	$(MAKE) uninstall || exit 1;\
	cd ..;

uninstall-locales:
	cd po;\
	$(MAKE) uninstall || exit 1;\
	cd ..;


clean: 
	@for dir in ${DIRS_SRC}; do \
		cd $$dir; \
		${MAKE} clean || exit 1; \
		cd .. ; \
	done
	cd Share-lib;\
	$(MAKE) clean || exit 1;\
	cd ..;
	cd Examples;\
	$(MAKE) clean || exit 1;\
	cd ..;
	$(RM) *~

distclean: clean
	$(RM) Makeconf config.log config.cache config.status config.h