File: Makefile.am

package info (click to toggle)
linpac 0.16stable-0.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,752 kB
  • ctags: 2,821
  • sloc: cpp: 17,146; sh: 6,959; ansic: 4,279; makefile: 223; perl: 101
file content (37 lines) | stat: -rw-r--r-- 1,562 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
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = foreign
SUBDIRS = ctt data doc macro mail src inst plugins
datadir = @prefix@/share/linpac
data_DATA = README NEWS
EXTRA_DIST = linpac.lsm COPYING

.PHONY: postinstall noinstall

install: postinstall

postinstall: 
	(cd $(DESTDIR)@prefix@/share/linpac/bin && rm -f autotx >/dev/null 2>/dev/null)
	(cd $(DESTDIR)@prefix@/share/linpac/bin && @LN_S@ autobin autotx >/dev/null 2>/dev/null)
	(cd $(DESTDIR)@prefix@/share/linpac/bin && rm -f rawtx >/dev/null 2>/dev/null)
	(cd $(DESTDIR)@prefix@/share/linpac/bin && @LN_S@ rawio rawtx >/dev/null 2>/dev/null)
	(cd $(DESTDIR)@prefix@/share/linpac/bin && rm -f yapptx >/dev/null 2>/dev/null)
	(cd $(DESTDIR)@prefix@/share/linpac/bin && @LN_S@ yapp yapptx >/dev/null 2>/dev/null)

noinstall:
	@if [ -x ./src/linpac ]; then \
	(cd src && @LN_S@ applications bin >/dev/null 2>/dev/null); \
	(cd src && @LN_S@ ../macro macro >/dev/null 2>/dev/null); \
	(cd src && @LN_S@ ../mail mail >/dev/null 2>/dev/null); \
	(cd src && mkdir save >/dev/null 2>/dev/null); \
	(cd src && mkdir user >/dev/null 2>/dev/null); \
	(cd src && mkdir log >/dev/null 2>/dev/null); \
	(cd src/applications && @LN_S@ autobin autotx); \
	(cd src/applications && @LN_S@ rawio rawtx); \
	(cd src/applications && @LN_S@ yapp yapptx); \
	(cd src/applications && @LN_S@ mailer/mail mail); \
	cp ctt/*.ctt src; \
	(cd src/applications/liblinpac && make install); \
	echo LinPac is now prepared for running from ./src; \
	else echo Please execute the 'make' command first; \
	fi