forked from ularn/ularn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
executable file
·97 lines (77 loc) · 3 KB
/
Makefile.in
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
95
96
prefix = @prefix@
exec_prefix = @exec_prefix@
##########################################################################
# the location of data files
datarootdir = @datarootdir@
DATADIR = @datadir@/Ularn
DOCDIR = @docdir@/@PACKAGE_NAME@-@PACKAGE_VERSION@
distdir = @top_srcdir@/@PACKAGE_NAME@-@PACKAGE_VERSION@
##########################################################################
##########################################################################
# final location of binary (for 'make install')
BINDIR = @bindir@
##########################################################################
##########################################################################
# name of program
PROGRAM = Ularn
##########################################################################
##########################################################################
# link flags
LDFLAGS= @LIBS@ @TERMLIBS@
##########################################################################
##########################################################################
# compile flags
CFLAGS= @CFLAGS@
##########################################################################
##########################################################################
# compile defs
DEFS= -DLIBDIR='"@datadir@/Ularn"'
##########################################################################
##########################################################################
# build related files
BUILDFILES= Makefile.in configure configure.ac config.guess config.h.in \
config.sub
##########################################################################
##########################################################################
# misc files
MISCFILES= INSTALL MANIFEST TODO
##########################################################################
##########################################################################
# doc files
DOCFILES= CHANGES.text LICENSE README README.spoilers
##########################################################################
SUBDIRS = src data
all:
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done
##########################################################################
install: all
if test ! -d $(DESTDIR)$(DOCDIR) ; then mkdir -p $(DESTDIR)$(DOCDIR) ; fi
-cp $(DOCFILES) $(DESTDIR)$(DOCDIR)
-chmod 644 $(DESTDIR)$(DOCDIR)/*
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done
lint:
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done
clean:
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done
distclean: clean
rm -f config.h Makefile
rm -f *~ .#*
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done
dist: clean
mkdir $(distdir)
cp $(BUILDFILES) $(distdir)
cp $(MISCFILES) $(distdir)
cp $(DOCFILES) $(distdir)
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done