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
|
# This just shortcuts stuff through to cmake
all build ctwm man install clean: build/Makefile
( cd build && ${MAKE} ${@} )
build/Makefile cmake: CMakeLists.txt
( cd build && \
cmake -DCMAKE_C_FLAGS:STRING="${CFLAGS}" ${CMAKE_EXTRAS} .. )
allclean distclean:
rm -rf build/*
# Reindent files
indent:
astyle -n --options=tools/ctwm.astyle *.h *.c
# Build documentation files
DOC_FILES=README.html CHANGES.html STYLE.html
docs: ${DOC_FILES}
doc_clean:
rm -f ${DOC_FILES}
README.html: README
multimarkdown -ao README.html README
CHANGES.html: CHANGES
multimarkdown -ao CHANGES.html CHANGES
STYLE.html: STYLE
multimarkdown -ao STYLE.html STYLE
# asciidoc files
adocs:
(cd doc && make all)
adoc_clean:
(cd doc && make clean)
# Prebuild these files for releases
YACC?=/usr/bin/yacc
YFLAGS=-d -b gram
RELEASE_FILES=gram.tab.c gram.tab.h lex.c deftwmrc.c
release_files: ${RELEASE_FILES} ${DOC_FILES} adocs
release_clean: doc_clean adoc_clean
rm -f ${RELEASE_FILES}
gram.tab.c: gram.tab.h
gram.tab.h: gram.y
${YACC} ${YFLAGS} gram.y
# Standard make transformations give us lex.c
deftwmrc.c: system.ctwmrc
tools/mk_deftwmrc.sh system.ctwmrc > deftwmrc.c
|