GMKPATH include GMKPATH global mk SUBDIRS etc man share src themes all

 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
GMKPATH = .
include $(GMKPATH)/global.mk
SUBDIRS = etc man share src themes
all: src/config.h
$(MAKEDIRS)
release: all
$(MAKEDIRS)
clean:
$(MAKEDIRS)
@rm -f src/config.h
install: release
$(MAKEDIRS)
@( \
$(INSTALLODR) $(TMPDIR); \
$(INSTALLDIR) $(DOCDIR); \
for IDOCFILE in COPYING ChangeLog FAQ INSTALL README README.DEV THANKS; do \
$(INSTALLFIL) $$IDOCFILE $(DOCDIR); \
done \
)
src/config.h:
@( \
echo "#define DEBUG $(DEBUG)" > $@; \
echo "#define PREFIX \"$(PREFIX)\"" >> $@; \
echo "#define ETCDIR \"$(ETCDIR)\"" >> $@; \
echo "#define WWWDIR \"$(WWWDIR)\"" >> $@; \
echo "#define TMPDIR \"$(TMPDIR)\"" >> $@; \
echo "#define LOCDIR \"$(LOCDIR)\"" >> $@; \
echo "#define DOCDIR \"$(DOCDIR)\"" >> $@; \
echo "#define LOGFILE \"$(LOGFILE)\"" >> $@; \
echo "#define LARGEFILE \"$(LARGEFILE)\"" >> $@; \
echo "#define SATSEP \"$(SATSEP)\"" >> $@; \
echo "#define CC \"$(CC)\"" >> $@; \
echo "#define INSTALL \"$(INSTALL)\"" >> $@; \
echo "#define CMDSORT \"$(SORT)\"" >> $@; \
echo "#define PROGNAME \"$(PROGNAME)\"" >> $@; \
echo "#define PROGVERSION \"$(PROGVERSION)\"" >> $@; \
echo "#define PROGURL \"$(PROGURL)\"" >> $@; \
echo "#define PROGLNAME \"$(PROGLNAME)\"" >> $@; \
echo "#define PROGCOPYRIGHT \"$(PROGCOPYRIGHT)\"" >> $@; \
echo "#define CFLAGS \"$(CFLAGS)\"" >> $@; \
echo "#define LDFLAGS \"$(LDFLAGS)\"" >> $@; \
echo "#define LIBS \"$(LIBS)\"" >> $@; \
)