about summary refs log tree commit diff stats
path: root/Makefile
blob: 9ef219a53c575f6adbbf5a8ae7f0e594ad0831fa (plain) (blame)
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
# dwm - dynamic window manager
#   (C)opyright MMVI Anselm R. Garbe

include config.mk

SRC = client.c draw.c event.c main.c tag.c util.c
OBJ = ${SRC:.c=.o}

all: options dwm
	@echo finished

options:
	@echo dwm build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "LDFLAGS  = ${LDFLAGS}"
	@echo "CC       = ${CC}"

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<

${OBJ}: dwm.h config.h config.mk

config.h:
	@echo creating $@ from config.default.h
	@cp config.default.h $@

dwm: ${OBJ}
	@echo LD $@
	@${CC} -o $@ ${OBJ} ${LDFLAGS}
	@strip $@

clean:
	@echo cleaning
	@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz

dist: clean
	@echo creating dist tarball
	@mkdir -p dwm-${VERSION}
	@cp -R LICENSE Makefile README config.*.h config.mk \
		dwm.1 dwm.h ${SRC} dwm-${VERSION}
	@tar -cf dwm-${VERSION}.tar dwm-${VERSION}
	@gzip dwm-${VERSION}.tar
	@rm -rf dwm-${VERSION}

install: all
	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f dwm ${DESTDIR}${PREFIX}/bin
	@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
	@sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1

uninstall:
	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
	@rm -f ${DESTDIR}${PREFIX}/bin/dwm
	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
	@rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1

.PHONY: all options clean dist install uninstall
04-26 00:42:54 +0100 committer James Booth <boothj5@gmail.com> 2014-04-26 00:42:54 +0100 Added cppcheck.out to .gitignore' href='/danisanti/profani-tty/commit/.gitignore?id=f44cf86f23f7b4183c5864a74e42b9f632c2c640'>f44cf86f ^
62dd30ff ^
ef34ddc1 ^
2dacfc82 ^
fbeb107c ^


1814dcdd ^
f7843def ^
e94b604b ^
1e35b76b ^
e0dfe483 ^


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






                                                                 
            
   
     
     
         
    
          
      
          



               

               
             
         
              
        
  
         
              
    
     

        

                  

                   

                  






                 
        
                
                   
           
         


                   

                   
           
            
             
      
                     


                   
   
       
             
               


                  
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
profanity
profanity.sh
*.o
*.log
*.swp
testsuite
tags
cscope.out
.deps/
build-aux/
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
src/config.h
src/config.h.in
config.status
configure
configure.scan
stamp-h1
*~
*dirstamp
valgrind*.out*
core
bugs/
TODO
plugins/
*_key.txt
*_fingerprints.txt
src/gitversion.h
src/gitversion.h.in
*_key.txt
*_fingerprints.txt
TAGS
.libs/
_configs.sed
libprofanity.la
libtool
runvalgrind.sh
src/prof_config.h
clean.sh
valgrind.out.old
tests/testsuite.trs
push-all.sh
.DS_Store
.codelite/
Profanity.project
Profanity.workspace
profanity.project
profanity.workspace
pageing.txt
cppcheck.out
gitpushall.sh
Debug/
compile_commands.json
profanity.mk
profanity.project
profanity.workspace
m4/
test.sh
clean-test.sh
callgrind.out.*
gen_docs.sh
main_fragment.html
toc_fragment.html